
Attach levels "no" and "yes" to a 0-1 vector and turn it into a factor.
attachYesNo(v)
Factor with the corresponding levels.
Vector.
Kaspar Rufibach (maintainer), kaspar.rufibach@gmail.com,
http://www.kasparrufibach.ch
set.seed(1977)
vec <- round(runif(10, 0, 1))
attachYesNo(vec)
Run the code above in your browser using DataLab