# Factor columns are returned with their levels
get_levels(iris)
# No factor columns
get_levels(mtcars)
# standardize() is first run on `y`
# which converts the input to a data frame
# with an automatically named column, `".outcome"`
get_outcome_levels(y = factor(letters[1:5]))
Run the code above in your browser using DataLab