Skip to content
Prev 78083 / 398502 Next

Easy cut & paste from Excel to R?

Hi

Works for me.

write.excel <- function (tab, ...) write.table(tab, "clipboard", sep 
= "\t", row.names = F)

write.excel(a)

from your example shows in Excel after ctrl-V as a table with names.

HTH

Petr
On 29 Sep 2005 at 12:12, Jose Quesada wrote:
Date sent:      	Thu, 29 Sep 2005 12:12:00 +0100
From:           	Jose Quesada <quesada at gmail.com>
To:             	Werner Wernersen <pensterfuzzer at yahoo.de>
Copies to:      	r-help at stat.math.ethz.ch
Subject:        	Re: [R] Easy cut & paste from Excel to R?
Send reply to:  	Jose Quesada <quesada at gmail.com>
	<mailto:r-help-request at stat.math.ethz.ch?subject=unsubscribe>
	<mailto:r-help-request at stat.math.ethz.ch?subject=subscribe>
Petr Pikal
petr.pikal at precheza.cz