I have 3 very large files with thousands of observations (file_1 = 6314 rows, file_2 = 11020 rows, file_3 = 2757 rows). I need to join them, so I used the function full_join()
from the dplyr package. When I run the code I get this error:Error: std::bad_alloc
and nothing else.
How do I fix this?
This is my code:
det = full_join(det1, det2, by = "collectioncode")
det = full_join(det, det3, by = "collectioncode")