drop_levels_ID_column | R Documentation |
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
drop_levels_ID_column(some_data)
some_data |
a data.frame with an ID column |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.