Message-ID: <20020307181153.MAOM352.mta1@[194.153.172.197]>
Date: 2002-03-07T18:10:32Z
From: gfaieta@katamail.com
Subject: frequency
I'm quite new with R so sorry if I asked something very easy or complicated.
I have a data frame with (for instance) 4 variables (4 columns) and 100 records. I would like to have a 'summary' table for each variable that shows me the following:
variable 1 Freq. % % cumulative
class 1 10 10% 10%
class 2 20 20% 30%
class 3 70 70% 100%
Is there any kind of function in R that does somthing like this? Or is it necessary to create a customized function?
Thank you in advanced.
Giuseppe Faieta -statistician-
Bologna (Italy)
__________________________________________
Fai i tuoi acquisti su www.kwshopping.it
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._