[R] count the # of appearances...
Ranjan Maitra
maitra at iastate.edu
Thu Mar 1 15:27:56 CET 2007
Hello Bunny/Lautioscrew,
sum(your vector == your chosen element) should do what you want...
HTH,
Ranjan
On Thu, 1 Mar 2007 15:20:19 +0100 "bunny , lautloscrew.com" <bunny at lautloscrew.com> wrote:
> Hi there,
>
> is there a possibility to count the number of appearances of an
> element in a vector ?
> i mean of any given element.. deliver all elements which are exactly
> xtimes in this vector ?
>
> thx in advance !!
>
> ______________________________________________
> 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
> and provide commented, minimal, self-contained, reproducible code.
>
More information about the R-help
mailing list