[R] Can I extract result row of table()?
Uwe Ligges
ligges at statistik.uni-dortmund.de
Thu Mar 31 08:24:27 CEST 2005
Terry Mu wrote:
>>x <- c(5, 5, 8, 8, 8, 27)
>>table(x)
>
> x
> 5 8 27
> 2 3 1
>
> I want a way to use only "2, 3, 1", nomatter table or what other function used.
as.vector() removes the attributes, if that is your question.
Uwe Ligges
> Thanks.
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
More information about the R-help
mailing list