Re: [R] readLines vs scan

2012-02-12 Thread Gabor Grothendieck
On Sun, Feb 12, 2012 at 10:35 AM, Bert Gunter wrote: > Folks: > > Suppose I wish to input a text file with variable length lines and > possible whitespace as is and then parse the resulting character > vector in R. Each line of text is terminated with "\n" (newline > character). > > Is there any r

[R] readLines vs scan

2012-02-12 Thread Bert Gunter
Folks: Suppose I wish to input a text file with variable length lines and possible whitespace as is and then parse the resulting character vector in R. Each line of text is terminated with "\n" (newline character). Is there any reason to prefer one or the other of: scan (filename, what ="a",sep