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