Selecting multiple subsets of data from a single dataframe column to calculate averages

See the FAQ: How to do a minimal reproducible example reprex for beginners to attract more answers. The friction of having to reverse engineer a problem without data deters answers.