Transferring R results to word prosessors
Gabor Grothendieck <ggrothendieck at gmail.com> writes:
Yes, the R2HTML route is probably the quickest. Its just one line
of code (plus the call to load in R2HTML). Try this where iris
is a data set built into R:
library(R2HTML)
HTML( iris, file("clipboard","w"), append=FALSE )
Now paste the clipboard into Excel and from there into Word.
(If you are using OO Calc instead of Excel then you need to do:
Edit | Paste Special | HTML Format | OK
in Calc.)
Er, if you need to go via Excel anyway, wouldn't it be easier to just use write.table or write.csv/write.csv2? The real value in R2HTML would seem to be if you could go directly to Word/OO Writer.
O__ ---- Peter Dalgaard ??ster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907