Problem with `mutate()` input `data`.

Can you provide a reproducible example? It will help if you show us some code and an example of your data. FAQ: How to do a minimal reproducible example ( reprex ) for beginners