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