Unify the levels in a list of factors
fct_unify(fs, levels = lvls_union(fs))
fs | A list of factors |
---|---|
levels | Set of levels to apply to every factor. Default to union of all factor levels |
#> [[1]] #> [1] a #> Levels: a b #> #> [[2]] #> [1] b #> Levels: a b #> #> [[3]] #> [1] a b #> Levels: a b #>