Designed for fast variable creation when a new variable is going to be created from existing variable. For example, multiple samples can be mapped to the same study design condition, clusters can be mapped to cell types.
Arguments
- object
A liger object.
- from
The name of the original variable to be mapped from.
- newTo
The name of the new variable to store the mapped result. Default
NULL
returns the new variable (factor class).- ...
Mapping criteria, argument names are original existing categories in the
from
and values are new categories in the new variable.