I think we need a FAQ: How to do a minimal reproducible example ( reprex ) for beginners
Saying *row-wise does not really give us a good idea of what you are doing.
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.