attachPresAbs: Attach levels absent and present to a 0-1 vector.

Description Usage Arguments Value Author(s) Examples

Description

Attach levels "absent" and "present" to a 0-1 vector and turn it into a factor.

Usage

1

Arguments

v

Vector.

Value

Factor with the corresponding levels.

Author(s)

Kaspar Rufibach (maintainer), kaspar.rufibach@gmail.com,
http://www.kasparrufibach.ch

Examples

1
2
3
set.seed(1977)
vec <- round(runif(10, 0, 1))
attachPresAbs(vec)


Search within the reporttools package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@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.