Concatenate factors, unioning levels.

Description

This is useful way of patching together factors from multiple sources that really should have the same levels but don't.

Usage

1
fct_c(fs)

Arguments

fs

A list of factors

Examples

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