[R] R function similar to UNIX "uniq -c"?

Hilmar M. Carders carders at north.sr.unh.edu
Thu Dec 19 18:27:13 CET 2002


Thanks to all who responded so quickly, table() is exactly what I was 
looking for.



On Thu, 19 Dec 2002, Uwe Ligges wrote:

> Hilmar M. Carders wrote:
> > Is there an R function that gives the equivalent of the UNIX command 
> > "uniq -c" which could be applied to a vector with duplicate values?
> 
> See ?table.
> 
> Uwe Ligges
>




More information about the R-help mailing list