Data mappings describe how variables in the data are mapped to standard names
used throughout epiphy
.
Arguments
- ...
One or more unquoted expressions separated by commas.
- x
Vector of one or more character strings.
- data
An
intensity
object.- mapping
A
mapping
object.- keep_only_std
Keep only standard variables.
Details
Standard names are x
, y
and z
for the three spatial
dimensions, and t
for the time. r
corresponds to the records
of (disease) intensity, and n
, the number of individuals in a sampling
unit (if applicable).
mapping()
works with expressions, and mapping_()
, with a vector
of characters.
Examples
mapping(x = col1, y = col2)
#> * x -> col1
#> * y -> col2
mapping_(c("x = col1", "y = col2"))
#> * x -> col1
#> * y -> col2