Write a function to_character()
that converts every factor variable in a data frame to a character variable. Add an argument exclude
that allows you to exclude certain variables from this conversion if you want. Be sure to include the necessary checks and messages for the user.