fct_expand(f, ...)

## Arguments

f A factor (or character vector). Additional levels to add to the factor. Levels that already exist will be silently ignored.

## Examples

f <- factor(sample(letters[1:3], 20, replace = TRUE))
f#>  [1] a a a a a a a b c c b b a b a c a c a b
#> Levels: a b cfct_expand(f, "d", "e", "f")#>  [1] a a a a a a a b c c b b a b a c a c a b
#> Levels: a b c d e ffct_expand(f, letters[1:6])#>  [1] a a a a a a a b c c b b a b a c a c a b
#> Levels: a b c d e f