# >Factors
For these exercises, we’ll use the dog breed traits data set.
- Load tidyverse, import
dog_breed_traits_clean.csvtotraits.
- Convert both coat_type and coat_length into factors using
across()and save astraits2.
# >- Check the levels for both columns, one using a pipe and one without using a pipe.
# >- Reorder the levels for coat_length to be Short, Medium, Long (reassigned to
traits2) and then check the levels.
# >- Reorder the levels for coat_type to be in the order of the most to least frequent coat type and then check the levels.
# >- Relabel coat_length to be Stubby, Mid, and Lush rather than Short, Medium, and Long.
# >- The new AKC standard subsumes Rough coats with Wiry coats and Silky with Wavy. Please update the coat_type variable accordingly.
# >