Learn R Programming

mappings (version 0.1)

domain: Domain and codomain of a mapping.

Description

Domain and codomain of a mapping.

Usage

domain(x)

codomain(x)

Arguments

Value

x A vector of the same type as we supplied when the mapping was created.

Examples

Run this code
# NOT RUN {
sex.mapping <- mapping(c("Female", "F", "Male", "M"), c(0, 0, 1, 1))
domain(sex.mapping)
codomain(sex.mapping)
# }

Run the code above in your browser using DataLab