[R] a question on useage of "table"

Yong Wang wang at galton.uchicago.edu
Wed Jun 23 06:14:57 CEST 2004


Hi, all
the question is as follows
> v
 [1] 1 2 3 4 5 2 3 4 5 6
> sv<-sort(table(v))
> sv
v
1 6 2 3 4 5 
1 1 2 2 2 2 


what is the easy and quick way to extract the numerical vector 
(1,6,2,3,4,5)
from sv?

thank you in advance for any suggestion.
regards
y.w




More information about the R-help mailing list