Skip to content
Prev 274761 / 398506 Next

How to read data sequentially into R (line by line)?

Use 'readLines' instead of 'read.table'.  We want to read in the text
file and convert it into separate text files, each of which can then
be read in using 'read.table'.  My solution assumes that you have used
readLines.  Trying to do this with data frames gets messy.  Keep it
simple and do it in two phases; makes it easier to debug and to see
what is going on.
On Tue, Oct 18, 2011 at 8:57 AM, johannes rara <johannesraja at gmail.com> wrote: