Description Usage Arguments Value Examples
apply the same re-mapping that was used for one factor to a different factor
1 | same.remap(x, mapping, new.to.na = FALSE)
|
x |
the variable to remap, assumed to be a factor |
mapping |
the mapping to use |
new.to.na |
if TRUE, then new levels not in the mapping get coded to NA; otherwise, they get assigned new numbers |
a list whose elements contain
vals
the variable x with the underlying values made contiguous
map
a vector with the mapping from the old to the new levels
len
the number of levels
orig
the original variable that was passed in
1 2 3 4 | ## Not run:
## TODO add examples
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.