powered by
Convert dummy-coded variables to low/high factor
ec_undummy_lowhigh(vec_in)
A factor vector with levels "low" and "high"
A vector of dummy-coded variables (0/1)
ec_undummy_lowhigh(c(0,1,0,1,1))
Run the code above in your browser using DataLab