forcats (version 0.1.1)

fct_c: 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

fct_c(fs)

Arguments

fs
A list of factors

Examples

Run this code
fs <- list(factor("a"), factor("b"), factor(c("a", "b")))
fct_c(fs)

Run the code above in your browser using DataLab