xts - Delete specific rows without transform to other format
0
Question: How can I delete specific rows in xts, without the need of transform to other formats. The selected row to be deleted, will be based on the row number, or [column.one] but not the timestamp. This is what I have tested so far: Send row 4, column 1, to NULL myxts[4,1] <- NULL Result: Error in NextMethod(.Generic) : number of items to replace is not a multiple of replacement length Add value to NA, then delete all NA with [na.omit] xts3[1,1] <- NA # Adds NA na.omit(xts3) Result: Does remove the NA rows but does not solve the straightforward way of deleting a row. This is my test xts: ########## # Test xts ########## dates <- as.POSIXct( # Construct the dates to be used. c( "2013-07-24 09:01:00", "2013-07-24 09:02:00", "2013-07-24 0...