Skip to content
Prev 106071 / 398506 Next

exporting a table to latex

Hi,
I hope I did not oversee any emails concerning your question. Typically,
I use the xtable-package. Please let me know if the following code is
not doing what you hope for.

Best,
Roland


mydata <- data.frame(Category=LETTERS[1:10], Percentage=runif(10))

library(xtable)

xtable(mydata, digits=c(0,0,3)) ### LaTeX format => default
#### you can even create an HTML table
print(xtable(mydata, digits=c(0,0,5)), type="HTML")


----------
This mail has been sent through the MPI for Demographic Rese...{{dropped}}