Trying to filter my data

It is not really clear to me what you are doing here. Could you provide FAQ: How to do a minimal reproducible example ( reprex ) for beginners and sample data?

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.