drop_levels_ID_column {dRiftDM} | R 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 ushered
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 ushered
[Package dRiftDM version 0.2.1 Index]