attachPresAbs {reporttools} | R Documentation |
Attach levels "absent" and "present" to a 0-1 vector and turn it into a factor.
attachPresAbs(v)
v |
Vector. |
Factor with the corresponding levels.
Kaspar Rufibach (maintainer), kaspar.rufibach@gmail.com,
http://www.kasparrufibach.ch
set.seed(1977)
vec <- round(runif(10, 0, 1))
attachPresAbs(vec)