read.table ignores first 5 lines (PR#1885)

ripley@stats.ox.ac.uk ripley@stats.ox.ac.uk
Thu, 8 Aug 2002 16:46:58 +0100 (BST)


On Thu, 8 Aug 2002, Russ Lenth wrote:

> This is informative; thanks.  Following Prof. Ripley's comment, I confirmed that
> a command like:
>
> 	read.table (textConnection(readLines()), head=T)
>
> ALMOST works for my purposes.  On our HP-UX installation of R 1.5, I can enter
> (or paste) the data, then press Ctrl-D, and I've got what I want.  Under
> Windows, however, I could not find a way to signal the end of the file (I tried
> Ctrl-Z, Ctrl-D, Ctrl-C); so in that case it only works if I provide the "n"
> argument for readLines.  I'm surprised that Ctrl-Z doesn't work.

So was I.  I'm currently working on that, so it will in the next release.

I have some hope of fixing scan, but it is very complicated (I've already
spent a couple of hours on it).

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._