You have to use dplyr:group_by()
And dplyr::summarise()
If you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.
You have to use dplyr:group_by()
And dplyr::summarise()
If you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.