freq_vars_by | R Documentation |
Frequency of several variables by group
freq_vars_by(data, vars, by)
data |
data.frame() data |
vars |
list of variables to compute frequency on |
by |
name of grouping variable |
data.frame() Returned columns:
variable name
,
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
An attribute "missing" contains missing count for each variable by group
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.