Attach levels "absent" and "present" to a 0-1 vector and turn it into a factor.
Factor with the corresponding levels.
Kaspar Rufibach (maintainer), email@example.com, http://www.kasparrufibach.ch
vec <- round(runif(10, 0, 1))
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.