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 x=x[-i,] 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) x=x[-vector,] cheers, sven -- 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. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.