Skip to content

question about subset

3 messages · jose silva, Bert Gunter, Sean Davis

#
?row.names

-- Bert Gunter
Genentech Non-Clinical Statistics
South San Francisco, CA
 
"The business of the statistician is to catalyze the scientific learning
process."  - George E. P. Box
#
On May 5, 2005, at 6:31 PM, jose silva wrote:

            
> x <- subset(mydata, B>0)
 > row.names(x) <- rank(x$A)
 > x
   A B
1 2 2
2 4 6
3 7 2
4 8 5
5 9 7
I think you already got this using subset.  The row.names can be used 
to set the row names to whatever you want.

Sean