Portal Data Aggregation (dplyr)

If the file surveys.csv is not already in your working directory download it.

Load surveys.csv into R using read.csv().

  1. Use the group_by() and summarize() functions to get a count of the number of individuals in each species ID.
  2. Use the group_by() and summarize() functions to get a count of the number of individuals in each species ID in each year.
  3. Use the filter(), group_by(), and summarize() functions to get the mean mass of species DO in each year.
Expected outputs for Portal Data Aggregation: 1