Welcome to SO. Please provide a [reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) including some code you've written so far and at least a portion of your dataset using `dput()`.
– jrcalabreseNov 10 '22 at 14:25