domain | R Documentation |
Domain and codomain of a mapping.
domain(x)
codomain(x)
x |
A |
x A vector of the same type as we supplied when the
mapping
was created.
These aren't the true domain and codomain in the mathematical sense; both can contain duplicates.
sex.mapping <- mapping(c("Female", "F", "Male", "M"), c(0, 0, 1, 1))
domain(sex.mapping)
codomain(sex.mapping)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.