powered by
Creates a set of frequency tables.
frequencies(data,r.digits=1)
Returns a list of freq.table objects. One for each variable in data.
freq.table
data
A data.frame containing the variables on which to run frequencies
how many digits should the percentages be rounded to
table xtabs descriptive.table prop.table
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)
Run the code above in your browser using DataLab