View source: R/indicator12_to_indicator01.R
indicator12_to_indicator01 | R Documentation |
NOTE: This converts the 2s to 0s and leaves the 1s and 1s!!
indicator12_to_indicator01(vars, df)
vars |
A character vector of variable names |
df |
The data frame in which to look for |
df
, with vars
converted to 0/1 indicators (binary
variables)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.