frequencies | R Documentation |
Creates a set of frequency tables.
frequencies(data,r.digits=1)
data |
A data.frame containing the variables on which to run frequencies |
r.digits |
how many digits should the percentages be rounded to |
Returns a list of freq.table
objects. One for each variable in data
.
table
xtabs
descriptive.table
prop.table
dat<-data.frame(rnorm(100)>0,trunc(runif(100,0,5)))
##rounding to 1
frequencies(dat)
##rounding to 4
frequencies(dat,4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.