View source: R/dummies_annotate.R
dummies_annotate | R Documentation |
Returns the annotation with additional dummy variables for specified variables. Requires a data.frame or matrix object of name 'annotation' in the global environment. The annotation object must be specified using the column names "name", "pname", "unit", "short_pname", and "comment". This function grabs the "pname" of the .input_variables to create the dummy names.
dummies_annotate(.data, .input_variables)
.data |
A data.frame or tibble. |
.input_variables |
A character vector containing variables that should be recoded as dummy variables in the annotation. |
The annotation with additional dummy variables for all .input_variables.
-
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.