fct_expand

Add explicit factor levels

Adds extra levels to a factor without changing existing assignments.

Parameters

Returns

A factor vector with additional levels.

Examples

fct_expand(fct, "new_level")