Description Usage Arguments Examples
Low Level Constructor for Key-Value Mappings
1 | new_mapping(key, value)
|
key |
vector from the domain |
value |
vector to which to map the keys Right now mapping uses a named vector lookup, so only character vectors can be keys. This will be generalized to vectors in the future. |
1 2 3 | lookup <- new_mapping(c("m", "f", "u"), c("Male", "Female", NA))
x <- c("m", "f", "u", "f", "f", "m", "m")
lookup(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.