Huxtable is an R package to create LaTeX and HTML tables, with a friendly, modern interface. Features include control over text styling, number format, background color, borders, padding, and alignment. Cells can span multiple rows and/or columns. Tables can be manipulated with standard R subsetting or dplyr functions.

Features

  • Documentation available
  • Examples available
  • Control over text styling, number format, background colour, borders, padding and alignment
  • Table cells can span multiple rows and/or columns
  • Table manipulation via standard R subsetting, or using dplyr
  • Automatic formatting for knitr/rmarkdown documents
  • huxreg() function for quick creation of regression tables
  • Output to HTML, LaTeX, RTF, and Microsoft Word/Excel/Powerpoint, using the officer and openxlsx packages
  • Quick one-liners to print data frames into a new PDF, HTML page, RTF or Microsoft document
  • Formatted table display in the R console, including borders, colour, and text styles

Project Samples

Project Activity

See All Activity >