prep_var | R Documentation |
Variable summary on stratification level
prep_var( x, y, x.multi = F, y.multi = F, x.dtype = c("num", "str", "fac"), x.levs = NULL, y.dtype = c("num", "str", "fac"), y.levs = NULL, n_perc = 5 )
x |
variable for summary stats |
y |
stratification variable |
x.multi |
logic, indicating if x is mult-response variable variable to be cleaned |
y.multi |
logic, indicating if y is mult-response variable variable to be cleaned |
x.dtype |
data type of x ('num', 'str', 'fac', logic) |
x.levs |
levels of x in case x is factor |
y.dtype |
data type of y ('num', 'str', 'fac', logic) |
y.levs |
levels of y in case y is factor |
n_perc |
frequency cutoff in percentage to combine categorical levels into class 'other' |
table ready to export
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.