Learn R Programming

REDCapCAST (version 24.12.1)

fct_drop: Drop unused levels preserving label data

Description

This extends [forcats::fct_drop()] to natively work across a data.frame and replace [base::droplevels()].

Usage

fct_drop.data.frame(x, ...)

Arguments

x

Factor to drop unused levels

...

Other arguments passed down to method.