Learn R Programming

⚠️There's a newer version (5.6.0) of this package.Take me there.

Huxtable is an R package for creating HTML and LaTeX tables. It provides similar functionality to xtable, but does more, with a simpler interface.

Installing

To install from CRAN:

install.packages('huxtable')

To install from github:

install.packages('devtools')
devtools::install_github('hughjonesd/huxtable')

Learning more

Check out the website, or read the vignette in HTML or PDF.

Copy Link

Version

Install

install.packages('huxtable')

Monthly Downloads

14,405

Version

0.2.1

License

MIT + file LICENSE

Maintainer

David Hugh-Jones

Last Published

April 24th, 2017

Functions in huxtable (0.2.1)

background_color

Background color
bold

Cell text style
cbind.huxtable

Combine rows or columns
col_width

Column widths
caption

Caption
caption_pos

Caption position
align

Alignment
as_FlexTable

Convert a huxtable for Word/Powerpoint
height

Table height
hux_logo

Huxtable logo
final

Return the last n rows or columns
font

Font
left_border_color

Border colors
left_padding

Cell padding
pad_decimal

Decimal padding
position

Table position
themes

Theme a huxtable
print_html

Create HTML representing a huxtable
print_screen

Print a huxtable on screen
font_size

Font size
guess_knitr_output_format

Guess knitr output format
label

Table label
left_border

Borders
colspan

Column span
mutate.huxtable

Dplyr verbs for huxtable
huxreg

Create a huxtable to display model output
huxtable-package

Huxtable: simply create LaTeX and HTML tables
set_cell_properties

Set multiple cell properties
t.huxtable

Transpose a huxtable
wrap

Text wrapping
rotation

Text rotation
row_height

Row heights
tabular_environment

Tabular environment
[.huxtable

Subset a huxtable
filter

Pointless documentation
na_string

NA string
number_format

Number format
add_colnames

Add column or row names
add_footnote

Add a row with a footnote
escape_contents

Escape cell contents
rowspan

Row span
rowspecs

Row and column specifications
where

Return array indices where expression is true
width

Table width
valign

Vertical alignment
set_all_border_colors

Set all border colors
set_all_borders

Set all borders
text_color

Text color
every

Return every n row or column numbers
huxtable

Create a huxtable
is_a_number

Does an object look like a number?
print.huxtable

Default print method for huxtables
report_latex_dependencies

Report LaTeX dependencies
print_latex

Create LaTeX representing a huxtable
print_md

Create Markdown representing a huxtable