View source: R/pv_rrepest_frequencies.R View source: R/grouped_frequencies.R
grouped_sum_freqs | R Documentation |
Computes a data frame with frequency counts.
grouped_sum_freqs(data, small.level, big.level, w = NULL)
grouped_sum_freqs(data, small.level, big.level, w = NULL)
data |
(data frame) Data to analyze. |
small.level |
(string vector) all variables to get grouped sum. |
big.level |
(string vector) Must be fully contained in variables from small.level |
w |
(string) Numeric variable from which to get weights (if NULL then 1). |
Data frame containing the frequency counts
Data frame with frequencies from the grouped sum of small.level and big.level used for getting percentages.
grouped_sum_freqs(data = mtcars,small.level = c("cyl","am"),big.level = c("cyl"))
grouped_sum_freqs(data = mtcars,small.level = c("cyl","gear"),big.level = c("cyl"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.