get_levels function

Extract factor levels from a data frame