powered by
compute frequency table.
freq_table(data, ..., vars = NULL, na.rm = TRUE)
a data frame
One or more unquoted expressions (or variable names) separated by commas. Used to specify variables of interest.
optional character vector containing variable names.
logical value. If TRUE (default), remove missing values in the variables used to create the frequency table.
data("ToothGrowth") ToothGrowth %>% freq_table(supp, dose) # Grouped data: frequencies are computed within each group ToothGrowth %>% group_by(supp) %>% freq_table(dose)
Run the code above in your browser using DataLab