View source: R/profile_table.R
profile_table_col_index | R Documentation |
Create col % index profile tables of all specified variables by banner variable.
profile_table_col_index( df, category_vars = NULL, numeric_vars = NULL, weight_var = NULL, banner_var )
df |
data.frame of input variables |
category_vars |
variables that are to be treated as factors in the table output. Will produce counts for each value for each variable. If weight_var is provided, will produce weighted counts. |
numeric_vars |
variables that are to be treated as numeric in the table output. Will produce means for each variable. if weight_var is provided, will produce weighted means. |
weight_var |
if not NULL, a vector that contains weights for each observation. The NULL case is equivalent to all cases being weighted 1. |
banner_var |
name of the variable to appear along the top of the table. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.