powered by
Generates frequency distribution table and bar chart to describe distribution of variable values. Based on freq function in descr package.
freq
freqC(x, w, plot = TRUE)
A vector of variable values, should be in form dataset$var
Sample weights (optional), should be in form dataset$weighvar
Do you want a bar chart? (default set to TRUE)
A frequency distribution table (a "freqtable" and "matrix" class object)
# NOT RUN { library(poliscidata) freqC(gss$zodiac, gss$wtss) freqC(x=gss$zodiac, w=gss$wtss) # }
Run the code above in your browser using DataLab