[R] frequency

gfaieta@katamail.com gfaieta at katamail.com
Thu Mar 7 19:10:32 CET 2002

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

More information about the R-help mailing list