R is doing what you are telling it to do. You aren't assigning the
result of your indexing to a new data.frame, and so it is simply
print()ing the result. Example,
x <- 1:10
x[-1]
x
vs.
x <- 1:10
x <- x[-1]
x
Joe Trubisz wrote:
Hi...
I have a rather large dataframe that I'm trying to rem
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
2 matches
Mail list logo