Description Usage Arguments Value
View source: R/00-10-cat-alternation.R
categorical vectors can 'alternate' between their basic levels and alternative values for each level. the functions in this file all relate to accessing, switching, changing etc. these alternatives Set categorical vector to alternative values
1 |
x |
categorical vector (see [categorical()]) |
alternative |
the alternative value as a string |
internal |
logical: set to TRUE if you want to alternate to an internal alternative (useful for vector classes that are based on the categorical class) |
the original vector, but its active values are replaced by the alternative
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.