R/echoice2.R
ec_undummy_lowhigh.Rd
Convert dummy-coded variables to low/high factor
ec_undummy_lowhigh(vec_in)
A vector of dummy-coded variables (0/1)
A factor vector with levels "low" and "high"
ec_undummy_lowhigh(c(0,1,0,1,1)) #> [1] low high low high high #> Levels: low high