Welcome to the forum.
We really need to see need to see all of your code and some sample data. See
FAQ Asking Questions
Screenshot are usually not very useful. A good way is to copy your code and paste it between
```
``
A handy way to supply some sample data is the dput() function. In the case of a large dataset something like dput(head(mydata, 100)) should supply the data we need. Just do dput(mydata) where mydata is your data. Copy the output and paste it here between
```
```