Please help, i really can't understand

The way to solve it is to understand your data and the arguments you use to call the function. You haven't provided either of these to us... So we are blind to help you. :frowning:

FAQ: How to do a minimal reproducible example ( reprex ) for beginners