Try table
example:
> tras <- rbinom(50,10,.5)
> table(tras)
tras
2 3 4 5 6 7 8
1 5 10 11 11 7 5
Alan
On Mon, 02 Apr 2001 11:14:22 -0300 Carlos Antonio S de
Andrade <cantonio at ch.ufpb.br> wrote:
> Hi!
>
> How to make tables of frequencies in R?
>
> Thanks.
> Prof. Carlos A. S. de Andrade
> Universidade Federal da Paraíba
> Centro de Humanidades
> Departamento de Economia e Finanças
> Tel.:83-333-5509(res)
> 310-1215(DEF/CH)
> E-mail: casandrade at super11.net
> cantonio at ch.ufpb.br
>
>
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> 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
>
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
----------------------
Alan T. Arnholt
Associate Professor
Dept. of Mathematical Sciences
TEL: (828) 262-2863
FAX: (828) 265-8617
arnholt at math.appstate.edu
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._