Re: [R] Error: cannot allocate vector of size 5.2 Gb

2014-03-20 Thread Pascal Oettli
Hello, It is not the right way to read a NetCDF file (according to the extension) in R. Please have a look at the "ncdf4" package. The "raster" package is also able to read this kind of files. Regards, Pascal On Fri, Mar 21, 2014 at 1:25 AM, eliza botto wrote: > Dear R family, > I am trying to

Re: [R] Error: cannot allocate vector of size 5.2 Gb

2014-03-20 Thread Clint Bowman
5.2 won't go into 4 but there may be more problems. 32-bit or 64 bit operating system? RAM is cheap but will your motherboard support more than 4 GB? And don't forget there are other processes that need to run while you are using R. Clint BowmanINTERNET: cl...@ecy.wa

[R] Error: cannot allocate vector of size 5.2 Gb

2014-03-20 Thread eliza botto
Dear R family, I am trying to read a real large dataset in R (~ 2Gb). Its in binary format. When i tried to read it by using following command readBin("DAT.dat.nc", numeric(), n=9e8, size=4, signed=TRUE, endian='little') I got the following error Error: cannot allocate vector of size 5.2 Gb I have