fct_c {forcats}R Documentation

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

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

[Package forcats version 0.1.1 Index]