Is there a way to produce a PDF of a table from R in the same way you produce a plot (ie with pdf() or ggsave())? I realize there are ways with other programs (using sweave
Here's a one-liner using my library:
library(huxtable) my_table <- table(mtcars$gear, mtcars$cyl) quick_pdf(my_table) # produces a PDF in the current directory