Hello Matt,
One of your columns is likely not a number. If you can post the code directly I can have a look at where the problem lies. If you can create a quick reprex I'll be able to see (FAQ: How to do a minimal reproducible example ( reprex ) for beginners)