[R] Printing/Generating/Outputting a Table (Not Latex)
Richard M. Heiberger
rmh at temple.edu
Tue Dec 9 05:13:58 CET 2014
yes of course, and the answer is latex() in the Hmisc package.
Why were you excluding it?
The current release of the Hmisc package has this capability on
Macintosh and Linux.
For Windows, you need the next release 3.14-7 which is available now at github.
## windows needs these lines until the new Hmisc version is on CRAN
## All operating systems
## Windows, one of the following
## 32-bit windows
## 64 bit windows
## I don't know the xdvicmd value
## this works on all R systems
tmp <- matrix(1:9,3,3)
tmp.dvi <- dvi(latex(tmp))
print.default(tmp.dvi) ## prints filepath of the pdf file
tmp.dvi ## displays the pdf file on your screen
On Mon, Dec 8, 2014 at 9:31 PM, Kate Ignatius <kate.ignatius at gmail.com> wrote:
> I have a simple question. I know there are plenty of packages out
> there that can provide code to generate a table in latex. But I was
> wondering whether there was one out there where I can generate a table
> from my data (which ever way I please) then allow me to save it as a
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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