07 July 2017 3 2K Report

Hi,

I have a big dataset with mat format (used for Matlab). It is a giant matrix. Its size is about 280 MB. I am trying to input it into R using the function 'readMat' in package 'R.matlab'. However, it took soooo long time (about 20 minutes) and then it threw out an error 'cannot allocate vector of size 10.7Gb'. Though it can be easily inputed in Matlab (about 1 minute).

Does anyone know how to input a large mat dataset into R quickly? And why the memory stuff is OK in Matlab but not in R?

Thanks,

Lei

Similar questions and discussions