[R] read.table("clipboard")

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Feb 5 14:16:38 CET 2001

> From: "Petr Pikal" <petr.pikal at precheza.cz>
> Date: Mon, 5 Feb 2001 14:07:33 +0100
> Please I have a question regarding read.table. I wonder if there is any 
> possibility to read a content of  'clipboard' directly  (let say as a copy 
> from Excel like programs) or if it is always necessary to save a file in 
> an appropropriate format.

It's only possible to read text files with read.table.  (Even text-like
connections are buffered to a textConnection.)

It is possible to write code to do this, so if anyone wants to 
contribute it....

To read parts of Excel files I would recommend RODBC: you don't need
Excel itself as Windows ODBC has a text driver for .xls files.

> I use 1.2.0 W version with W95.

Please upgrade to 1.2.1.

Brian D. Ripley,                  ripley at 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-help 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-help-request at stat.math.ethz.ch

More information about the R-help mailing list