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