ec_undummy_lowmediumhigh {echoice2} | R Documentation |
Convert dummy-coded variables to low/medium/high factor
Description
Convert dummy-coded variables to low/medium/high factor
Usage
ec_undummy_lowmediumhigh(vec_in)
Arguments
vec_in |
A vector of dummy-coded variables (0/1/2) |
Value
A factor vector with levels "low", "medium" and "high"
Examples
ec_undummy_lowmediumhigh(c(0,1,2,1,0,2))
[Package echoice2 version 0.2.4 Index]