Message-ID: <20021110072606.A15146@cattell.psych.upenn.edu>
Date: 2002-11-10T12:26:06Z
From: Jonathan Baron
Subject: frequency table
In-Reply-To: <3DCE3B32.9040502@host.sk>; from toth@host.sk on Sun, Nov 10, 2002 at 11:55:46AM +0100
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._