fct_drop

Drop unused factor levels

Removes levels that are not referenced by any value in the factor vector.

Parameters

Returns

A factor vector with unused levels removed.

Examples

fct_drop(fct)