# >
Summarizing rows
For these exercises, we’ll use a new clean version of the dog breed traits data set.
- Import data from https://jeffreyrstevens.quarto.pub/dpavir/data/dog_breed_traits_clean.csv and assign to
traits
.
- What is the overall mean rating for affectionate?
# >
- What is the overall mean rating for all rating columns ignoring
NA
s?
# >
- How many breeds are there in each coat type?
# >
- What is the median grooming rating for each coat type?
# >
- What is the lowest rating per coat length for each of the rating columns, ignoring
NA
s?
# >
- What are the sample size, mean, and standard deviation of shedding ratings for medium coat length dogs per coat type sorted from largest to smallest sample size and only including coat types with 5 or more samples?
# >
- Calculate each breed’s mean rating across all ratings columns and return a data frame with the highest rating for each coat type. Don’t forget to undo
rowwise()
withungroup()
before further calculations.
# >