I\'d like to print nicely-formatted data frames to paper, ideally from within a script. (I am trying to collect data using an instrument and automatically process and print
If you want to export as a png, you can do like this:
library(gridExtra) png("test.png", height = 50*nrow(df), width = 200*ncol(df)) grid.table(df) dev.off()
If you want to export as a pdf, you can do like this:
library(gridExtra) pdf("test.pdf", height=11, width=10) grid.table(df) dev.off()