How to filter a list of dataframes based on a unique count of categorical factors in each dataframe?
Advertisements I have a dataframe that I split into a list of dataframes based on a categorical variable in the dataframe: list <- split(mpg, mpg$manufacturer) I want to filter the list to only include dataframes where one of the categorical columns in each dataframe contain at least 5 unique factors, and remove those with less… Read More How to filter a list of dataframes based on a unique count of categorical factors in each dataframe?