Calculate a mean by groups with "circular"

See the FAQ: How to do a minimal reproducible example reprex for beginners for how to add enough data to allow better insight into the problem.