Re: [R] Can I extract result row of table()?

From: Uwe Ligges <ligges_at_statistik.uni-dortmund.de>
Date: Thu 31 Mar 2005 - 16:24:27 EST

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@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



R-help@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 Received on Thu Mar 31 16:31:11 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:57 EST