Description Usage Arguments Value
View source: R/compute_quant.R
construct_indicators
takes a factor variable with k levels contained in a data.frame and
expands it into a k-column data.frame of indicator variables for each of the levels.
Primarily a helper function for magic_table_categorical
.
1 | construct_indicators(var_name, dataset)
|
var_name |
a character string or vector containing the name(s) of the factor variable(s). |
dataset |
a data.frame object containing |
a data.frame containing the expanded factor variable.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.