freq_var_by | R Documentation |
Compute frequency of each level (or value) of the variable, by another grouping variable(s)
freq_var_by(data, variable, by = "yw", complete = TRUE)
data |
data.frame() |
variable |
variable to compute frequency on (for each level) |
by |
grouping variables (final output) |
complete |
if TRUE missing levels in groups will be completed with zero frequency |
data.frame() Returned columns:
level of the variable
frequency of the level in the group
Total of non missing value in for the variable in the group
Proportion of the level
One column of each group, with the value of the current group
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.