inverse {mappings} | R Documentation |
Inverse of a mapping
Description
Given a mapping
x
, return the inverse mapping.
Usage
inverse(x)
Arguments
x |
A |
Value
The inverse mapping
.
Examples
sex.mapping <- mapping(c("Female", "F", "Male", "M"), c(0, 0, 1, 1))
sex.inverse.mapping <- inverse(sex.mapping)
sex.inverse.mapping(c(0, 0, 1, 0))
[Package mappings version 0.1 Index]