alternate: categorical vectors can 'alternate' between their basic...

Description Usage Arguments Value

View source: R/00-10-cat-alternation.R

Description

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

Usage

1
alternate(x, alternative = c(), internal = FALSE)

Arguments

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)

Value

the original vector, but its active values are replaced by the alternative


mabafaba/categorical documentation built on May 3, 2020, 9 p.m.