Attach levels absent and present to a 0-1 vector.
Attach levels "absent" and "present" to a 0-1 vector and turn it into a factor.
Factor with the corresponding levels.
1 2 3
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.