[R] Copying tables from R to Excel
David L Carlson
dcarlson at tamu.edu
Tue Sep 23 16:15:00 CEST 2014
If you looked at the documentation for R2HTML you might have noticed that there is no function HTML.matrix. Perhaps your recommendation from an unnamed source is out of date? Assuming you loaded the package with library(R2HTML) as Ivan suggested, the command would be
HTML( summary(iris), file("clipboard", "w"), append=F )
Which will work just fine as long as you are using the Windows operating system. More technically, HTML() is a generic function with methods (156 in this case) for many different data types including matrices and tables.
David L Carlson
Department of Anthropology
Texas A&M University
College Station, TX 77840-4352
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Ivan Calandra
Sent: Tuesday, September 23, 2014 8:12 AM
To: r-help at r-project.org
Subject: Re: [R] Copying tables from R to Excel
Le 23/09/14 15:04, Angel Rodriguez a écrit :
> Dear Subscribers,
> I've found this recommendation to paste an R table to Excel:
> HTML.matrix( summary(iris), file("clipboard", "w"), append=F )
> # paste into Excel
> After installing R2HTML and writting that command, I get:
> Error: could not find function "HTML.matrix"
> Any clue?
> Thank you very much,
> Angel Rodr�guez-Laso
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
R-help at r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
More information about the R-help