drop_levels_ID_column: Maybe droplevels of ID column

View source: R/core_dm.R

drop_levels_ID_columnR Documentation

Maybe droplevels of ID column

Description

This function takes a data frame with an ID colmumn, and drops the unused levels from the ID column if it is factor; in this case a warning is thrown

Usage

drop_levels_ID_column(some_data)

Arguments

some_data

a data.frame with an ID column

Value

if the ID column is not of type factor, then the unmodified object is returned.

if the ID column is of type factor, droplevels is applied, and if levels were dropped, a warning is thrown


dRiftDM documentation built on April 3, 2025, 7:48 p.m.