fct_unify: Unify the levels in a list of factors

Description Usage Arguments Examples

View source: R/c.R

Description

Unify the levels in a list of factors

Usage

1

Arguments

fs

A list of factors

levels

Set of levels to apply to every factor. Default to union of all factor levels

Examples

1
2
fs <- list(factor("a"), factor("b"), factor(c("a", "b")))
fct_unify(fs)

sindribaldur/poorcats documentation built on Feb. 26, 2021, 12:27 a.m.