[R] trouble reading large data.frame

Jens Nieschulze jniesch at gwdg.de
Mon Jul 8 18:32:06 CEST 2002

On Mon, 8 Jul 2002, Corey Moffet wrote:

%I am having trouble reading in a large (92 columns x 73050 rows = 6720600
%cells) data file into a data.frame using read.table because of the way
%read.table allocates memory.
%I can use scan with nmax = 6720600 and the data will fit into memory, but I
%would like to create a data.frame from the data.

have you tried attr?

you can already use indices like oops[123:342,20:34]
and try to coerce it to a data.frame

probably not the best way, but maybe a workaround


%What is the best way to do this?  Is there something equivalent to nmax in
%With best wishes and kind regards I am
%Corey A. Moffet
%Support Scientist
%University of Idaho
%Northwest Watershed Research Center
%800 Park Blvd, Plaza IV, Suite 105
%Boise, ID 83712-7716
%(208) 422-0718
%r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
%Send "info", "help", or "[un]subscribe"
%(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

Jens Nieschulze

Institute for Forest Biometrics &	Phone: ++49-551-39-12107
Applied Computer Science		Fax  : ++49-551-39-3465
Buesgenweg 4
37077 Goettingen		E-mail: jniesch at uni-forst.gwdg.de
GERMANY				http://www.uni-forst.gwdg.de/~jniesch

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list