[R] frequency table
Jonathan Baron
baron at cattell.psych.upenn.edu
Sun Nov 10 13:26:06 CET 2002
On 11/10/02 11:55, Milan Toth wrote:
>is anybody whoo know something about making frequency tables in R. i'm
>just beginner in R. thank you.
table()
Learn how to use the help system too. When that fails, use my
help page.
A neat trick with table() is that you can use it to tabulate
columns of a matrix (for example) with:
apply(mymatrix,2,table)
Another neat trick is that you can plot it with plot() or
mosaicplot().
--
Jonathan Baron, Professor of Psychology, University of Pennsylvania
R page: http://finzi.psych.upenn.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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list