Re: [R] Strange "rownames"

2010-02-05 Thread Peter Ehlers
Zhang Jian wrote: I find one row in my large dataset. But when I use the "rownames" for the data on the 100,000 row, the result show nothing. I try it by the following example, it still likes that. tst[rownames(tst)==10,] [1] x y <0 rows> (or 0-length row.names) ## tst=data.

[R] Strange "rownames"

2010-02-05 Thread Zhang Jian
I find one row in my large dataset. But when I use the "rownames" for the data on the 100,000 row, the result show nothing. I try it by the following example, it still likes that. > tst[rownames(tst)==10,] [1] x y <0 rows> (or 0-length row.names) ## > tst=data.frame(x=1:20,y=