As von_olaf have said, with out a minimal REPRoducible EXample (reprex) we can just guess what your problem is, and I'm guessing that you are running out of RAM memory because of the size of your dataset.
1 Like