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().
- Use the
group_by()andsummarize()functions to get a count of the number of individuals in each species ID. - Use the
group_by()andsummarize()functions to get a count of the number of individuals in each species ID in each year. - Use the
filter(),group_by(), andsummarize()functions to get the mean mass of speciesDOin each year.