Sylvain,
On Jan 9, 2006, at 5:46 PM, Sylvain Charlat wrote:
> Does anybody know how to copy / paste data from Excel to R?
>
> If I type the following:
>
>> read.table(file("clipboard"))
>
> or
>
>> read.delim(file("clipboard"))
>
> I get an error message:
>
>> Error in open.connection(file, "r") : X11 module cannot be loaded
>
Wrong connection, you should use pipe("pbpaste") - see ?pipe - so in
your example it could look like this:
read.table(pipe("pbpaste"),sep="\t")
Cheers,
Simon
_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac