Re: [R] Transfer Crosstable to Word-Document

From: Udo König <ukoenig_at_med.uni-marburg.de>
Date: Sun, 17 Feb 2008 14:49:00 +0100

(2. attempt to post this)
(Udo)

Quoting Greg Snow <Greg.Snow_at_imail.org>:

> If your final goal is a word document, then you should look at the odfWeave
> package.
>

At work my primary goal has to be a word document, because:

My idea is to insert simple tables into Word (what I asked for in this thread) and to make more sohisticated tables -like [1]- with latex and include them as a graphic file. I would NOT like to make such a table with MS-Word! I read an introductory Latex script and asked our admin to install the Miktex package on my computer.

At home I can fortunately do what I want (Windows, Linux, OpenOffice,...).

Greg:
To the odfWeave package: in [2] I found the sentence "The package is currently limited to creating text documents using OpenOffice". So it doesn´t seem work with MS-Word?

[1] #Taken from:
http://biostat.mc.vanderbilt.edu/twiki/pub/Main/StatReport/summary.pdf, p. 28

library(Hmisc)
getHdata(pbc)
attach(pbc)

s5 <- summary(drug ~ bili + albumin + stage + protime + sex + age + spiders,

              method="reverse", dta=pbc, test=TRUE)

options(digits=1)
print(s5, npct="both")
options(digits=3)

w <- latex(s5, size="smaller", npct="both",
           npct.size="smaller[2]", Nsize="smaller[2]",
           msdsize="smaller[2]",
           middle.bold=TRUE, landscape=TRUE)

wd <- dvi(w)
detach(pbc)

[2] R newsletter, Volume 6/4, October 2006, p.3



Udo König
Clinic for Child an Adolescent Psychiatry Philipps University of Marburg / Germany

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Sun 17 Feb 2008 - 14:11:34 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 17 Feb 2008 - 15:30:14 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive