Re: [R] Read data.frame from clipboard

2011-03-08 Thread Duncan Murdoch
rom the clipboard. Perhaps Excel has changed. Duncan Murdoch -Original Message- From: Prof Brian Ripley [mailto:rip...@stats.ox.ac.uk] Sent: mardi 8 mars 2011 10:43 To: Thaler,Thorn,LAUSANNE,Applied Mathematics Cc: r-help@r-project.org Subject: Re: [R] Read data.frame from clipbo

Re: [R] Read data.frame from clipboard

2011-03-08 Thread Prof Brian Ripley
but as the author of read.DIF mentions support for "clipboard", some programs presumably can. -Original Message- From: Prof Brian Ripley [mailto:rip...@stats.ox.ac.uk] Sent: mardi 8 mars 2011 10:43 To: Thaler,Thorn,LAUSANNE,Applied Mathematics Cc: r-help@r-project.org Subject: R

Re: [R] Read data.frame from clipboard

2011-03-08 Thread Thaler, Thorn, LAUSANNE, Applied Mathematics
ssage- > From: Prof Brian Ripley [mailto:rip...@stats.ox.ac.uk] > Sent: mardi 8 mars 2011 10:43 > To: Thaler,Thorn,LAUSANNE,Applied Mathematics > Cc: r-help@r-project.org > Subject: Re: [R] Read data.frame from clipboard > > You haven't told us your OS. But assumin

Re: [R] Read data.frame from clipboard

2011-03-08 Thread Prof Brian Ripley
You haven't told us your OS. But assuming Windows, why not use read.delim("clipboard") or read.DIF("clipboard") ? On Tue, 8 Mar 2011, Thaler, Thorn, LAUSANNE, Applied Mathematics wrote: Hi everybody, I find myself quite often in the situation that I want to copy data from Excel to R on

[R] Read data.frame from clipboard

2011-03-08 Thread Thaler, Thorn, LAUSANNE, Applied Mathematics
Hi everybody, I find myself quite often in the situation that I want to copy data from Excel to R on the fly. If the source consists only of a single column, I usually do something like x <- as.numeric(readClipboard()) If I have a matrix, I usually export this matrix to a csv file fir