Re: [R] naive question

From: Gabor Grothendieck <>
Date: Thu 01 Jul 2004 - 01:48:44 EST

Tony Plate <tplate <at>> writes:

> I get the best read performance out of S-plus by using
> a homegrown binary file format with each column stored in a contiguous
> block of memory and meta data (i.e., column types and dimensions) stored at
> the start of the file. The S-plus read function reads the columns one at a
> time using readRaw(). One would be able to do something similar in R. If
> you have to read from a text file, then, as others have suggested, writing
> a C program wouldn't be that hard, as long as you make the format inflexible.

At one time there was a program around (independent of R) that would read in a file in numerous formats including text and write out an R .rda file (among other formats). The .rda file could then be rapidly read into R using the R load command. Unfortunately the author withdrew it and it is no longer available.

I suspect that if someone came up with such a program in C code but to keep it simple just restricted it to ASCII input files with a minimum number of data types and .rda or homegrown binary output it would be of general interest to the R community. mailing list PLEASE do read the posting guide! Received on Thu Jul 01 01:52:47 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:54:38 EST