powered by
For one variable, returns a frequency distribution table given in percentages. For two variables, returns a contingency table given in percentages.
percent.table(x, y = NULL)
object containing data for a single variable.
optional second object to create a contingency table given in percentages. Default setting ignores second object by setting y = NULL.
y = NULL
A table of frequency percentages (for one variable) or a contingency table of percentages (for two variables).
cumulative.table, table
cumulative.table
table
# NOT RUN { # frequency table for one variable percent.table(NELS$region) # cross-tabulation for two variables percent.table(Wages$south,Wages$occup) # }
Run the code above in your browser using DataLab