Hi @goldbiggod! Welcome to RStudio Community!
Could you ask this with a minimal REPRoducible EXample (reprex)? A reprex makes it much easier for others to understand your issue and figure out how to help.
This includes a toy data set that mimics your actual data, the code that you have tried, and the error that you are getting. Thanks!