Numbers

Author

Jeffrey R. Stevens

Published

March 6, 2023

For these exercises, we’ll use the dog breed traits and dog breed popularity rankings data sets.

  1. Load tidyverse and import dog_breed_traits_clean.csv to traits.
# >
  1. Create a column of per-row means over all rating columns called mean_ratings and assign to traits2.
# >
  1. Convert mean_ratings to a proportion in a column called pmean_ratings and add to traits2.
# >
  1. Apply a natural log transformation to the pmeans_ratings vector.
# >
  1. Round pmean_ratings to two decimal places.
# >
  1. Convert pmean_ratings to scientific notation.
# >
  1. Sum up the total grooming ratings for each coat type.
# >
  1. Add inline R code to the following sentence in R Markdown to say how many rows have NA for grooming:

We are missing grooming data for [insert inline R code] breeds.