[R] latex code in R -> convert to pdf
baptiste auguie
baptiste.auguie at googlemail.com
Thu Sep 17 10:32:53 CEST 2009
Hi,
for basic tables (e.g. display a data.frame without fancy formatting),
you could try the textplot() function from the gplots package, or this
rough function for Grid graphics,
source("http://gridextra.googlecode.com/svn/trunk/R/tableGrob.r")
# install.packages("gridextra", repos="http://R-Forge.R-project.org")
tc = textConnection("
carat VeryLongWordIndeed color clarity depth
14513 1.35 Ideal J VS2 61.4
28685 0.30 Good G VVS1 64.0
50368 0.75 Ideal F SI2 59.2")
d = read.table(tc,head=T)
close(tc)
grid.newpage()
grid.table(d)
HTH,
baptiste
2009/9/17 Martin Batholdy <batholdy at googlemail.com>
>
> hi,
>
>
> is it possible to convert latex code to pdf in R (like a latex-program would do it)?
> Is there a package that comes with this capabilities?
>
>
> My problem is that I want to generate tables automatically -
> and I can't use a latex editor at that computer ...
>
>
>
> Besides latex ... are there good ways to generate tables in R?
>
>
>
>
> thanks for any suggestions!
>
> ______________________________________________
> 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.
More information about the R-help
mailing list