Skip to content
Prev 345990 / 398502 Next

Presentation tables in R (knitr)

Pebbles in sand are also an alternative to Excel, but that doesn't mean people want to switch to abaci. Horse, meet water.

If you use LaTeX (or Rmarkdown-to-pdf in RStudio), then you can obtain much better looking tables using latex.tabular(). Unfortunately, LaTeX is just too scary for some people.  First time you try tell them how to tweak the column widths they will drop your toolchain like a hot rock. I recommend the Tom Sawyer approach for long-lasting results... but don't expect your fence to get painted this year.

Also, this is neither a LaTeX nor an RStudio support forum, but R is sort of in the middle and we presume you know about the others. Getting your lessons in multiple forums seems unfriendly, but that is the price of feeding a file through a sequence of knitr, rmarkdown, pandoc, and pdflatex processing, even if RStudio lets you do it with a single push of a button.
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.
On November 25, 2014 1:07:00 PM PST, Tom Wright <tom at maladmin.com> wrote: