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