ec_undummy_yesno | R Documentation |
Convert dummy-coded variables to yes/no factor
ec_undummy_yesno(vec_in)
vec_in |
A vector of dummy-coded variables (0/1) |
A factor vector with levels "no" and "yes"
ec_undummy_yesno(c(0,1,0,1,1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.