[R] Removing rows from a data frame

Joe Trubisz trubisz at yahoo.com
Mon Jun 30 15:58:20 CEST 2008


Hi...

I have a rather large dataframe that I'm trying to remove rows from.
I'm issuing the command:

dtx[-which(dtx$rdate > "2008-06-16"),]

and it tries to print out over 170,000 lines of output. So...I did:

options(max.print=1e6)

and ran it again. It worked, but when I did a:

which(dtx$rdate > "2008-06-16")

it tells me that all the data I thought I deleted is still there.

Where am I going wrong??

TIA,
Joe



More information about the R-help mailing list