[R] "Delete row" takes ages. alternative?!

sven sven.bca at googlemail.com
Tue Jul 12 13:08:28 CEST 2011

Thanks both of you for help!

This is my conclusion based on Rolf's and David's suggestion: (x=data.frame)

By "for-looping" over a data.frame and deleting certain rows with

its better to collect all rows which need to be deleted in a vector and do
one final delete step:

collecting: vector=append(vector,i)


View this message in context: http://r.789695.n4.nabble.com/Delete-row-takes-ages-alternative-tp3656949p3661979.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list