growth rate question with dplyr

Use group_by(country)

If you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.