Skip to content
Prev 182000 / 398503 Next

How to set a filter during reading tables

There are several things you can tell read.table to make it faster.

First, as mentioned, setting colClasses helps. I think telling read.table how
many rows and columns there are also helps.

When this was not sufficient,  I've had to do the data processing
using Python, Perl, or awk.

If that had not been convenient I would have tried the sqldf solution that was
mentioned.

That covers all the options I'm familiar with. I'm also curious about other ways
to selectively read in rows in R. Let me know what ends up working.
On Sun, May 31, 2009 at 2:17 PM, <guox at ucalgary.ca> wrote: