[R] count the # of appearances...
maitra at iastate.edu
Thu Mar 1 15:27:56 CET 2007
sum(your vector == your chosen element) should do what you want...
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
> 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