[R] count definite categories

Prof Brian Ripley ripley at stats.ox.ac.uk
Sun Feb 24 14:07:51 CET 2002


I don't understand what you mean by `definite number' or `definite
categories' (might this be a mis-translation?), but I think you are
looking for table() or unique(), both of which would tell you there were
two categories.

On Sun, 24 Feb 2002, christian wrote:

> Hello,
>
> i  calculate with the formula  conf=Sum(2*Xn^n)
> definite number for binary configurations .
> How it is possible to count the  number of different conf ?
>
> example:
> 384
> 384
> 512
> 512
> 512
>
> the result should be 2  .
>
> Thanks for advance & regards,
> Christian
>
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list