Re: [R] Process File Line By Line Without Slurping into Object

2009-01-05 Thread Duncan Murdoch
Gundala Viswanath wrote: Dear all, In general practice one would slurp the whole file using this method before processing the data: dat <- read.table(filename) or variations of it. Is there a way we can access the file line by line without slurping/storing them into object? I am thinking som

[R] Process File Line By Line Without Slurping into Object

2009-01-04 Thread Gundala Viswanath
Dear all, In general practice one would slurp the whole file using this method before processing the data: dat <- read.table(filename) or variations of it. Is there a way we can access the file line by line without slurping/storing them into object? I am thinking something like this in Perl: