mohd suhail masroor
mohd suhail masroor

Reputation: 1

how to bind datasets in r if the size of the vector is more than 300mb

I am working on a case study where I have to figure out some trends but the data is not in one dataset so I used bind_row function in R to bind all the datasets and get a dataset of the whole data but this error popped up.

all_trips_2013_2022<- bind_rows(jun_to_dec_2013_trip_data, jan_to_jun_2014_trip_data, jul_2014_trip_data, aug_to_sep_2014_trip_data)

Error in bind_rows(): ! cannot allocate vector of size 268.3 Mb.

Upvotes: 0

Views: 43

Answers (1)

scott.pilgrim.vs.r
scott.pilgrim.vs.r

Reputation: 507

Try increasing memory in R:

 > memory.limit()
[1] **current memory limit**
## To increase the storage capacity
> memory.limit(size=2800) 

Also see: Memory Allocation "Error: cannot allocate vector of size 75.1 Mb"

Upvotes: 1

Related Questions