title: xts - Delete specific rows without transform to other format
body: <p><strong>Question:</strong> 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.</p>
  
  <p>This is what I have tested so far:</p>
  
  <p><strong>Send row 4, column 1, to NULL</strong></p>
  
  <pre><code>myxts[4,1] &lt;- NULL 
  </code></pre>
  
  <p>Result: Error in NextMethod(.Generic) : 
    number of items to replace is not a multiple of replacement length</p>
  
  <p><strong>Add value to NA, then delete all NA with [na.omit]</strong></p>
  
  <pre><code>xts3[1,1] &lt;- NA # Adds NA
  
  na.omit(xts3)
  </code></pre>
  
  <p>Result: Does remove the NA rows but does not solve the straightforward way of deleting a row.</p>
  
  <hr>
  
  <p>This is my test xts:</p>
  
  <pre><code>##########
  # Test xts
  ##########
  dates &lt;- as.POSIXct( # Construct the dates to be used.
    c(
      "2013-07-24 09:01:00", 
      "2013-07-24 09:02:00", 
      "2013-07-24 09:03:00"
    )
  )
  
  column.one &lt;- c(1,2,3) # Data in column.one.
  data &lt;- data.frame(column.one) # Create a dataframe.
  xts3 &lt;- xts(x=data, order.by=dates) # Create xts based on dataframe.
  </code></pre>