[R] How to read large file

From: Dongyan Song <yzhskdls_at_hotmail.com>
Date: Mon, 16 Mar 2009 08:11:52 -0700 (PDT)

Dear all,

I want to read a 1.2 G file with 136,736,218 numbers with scan function, and then want make a histogram with those numbers, but it showed Error: cannot allocate vector of size 2.0 Gb. How can I import the file then?

The version I used:
> sessionInfo()

R version 2.8.1 (2008-12-22)
i686-pc-linux-gnu
> mem.limits()

nsize vsize

   NA NA
and the computer I use has 4G memory in total.

Thank you very much!

Dongyan Song  

-- 
View this message in context: http://www.nabble.com/How-to-read-large-file-tp22540291p22540291.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Mon 16 Mar 2009 - 14:16:48 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 16 Mar 2009 - 20:30:27 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive