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,138

Version

0.3.1

License

MIT + file LICENSE

Maintainer

David Hugh-Jones

Last Published

September 12th, 2017

Functions in huxtable (0.3.1)

background_color

Background color
bold

Cell text style
cbind.huxtable

Combine rows or columns
col_width

Column widths
align

Alignment
as_FlexTable

Convert a huxtable for Word/Powerpoint
add_colnames

Add column or row names
add_footnote

Add a row with a footnote
caption

Caption
caption_pos

Caption position
[.huxtable

Subset a huxtable
filter

Pointless documentation
hux_logo

Huxtable logo
huxreg

Create a huxtable to display model output
font_size

Font size
get_default_properties

Get default huxtable properties
label

Table label
latex_float

Float position for LaTeX
number_format

Number format
colspan

Column span
mutate.huxtable

Dplyr verbs for huxtable
guess_knitr_output_format

Guess knitr output format
height

Table height
escape_contents

Escape cell contents
every

Return every n row or column numbers
insert_column

Insert a row or column
is_a_number

Does an object look like a number?
report_latex_dependencies

Report LaTeX dependencies
rotation

Text rotation
set_all_borders

Set all borders
set_cell_properties

Set multiple cell properties
left_padding

Cell padding
na_string

NA string
tabular_environment

Tabular environment
text_color

Text color
position

Table position
print.huxtable

Default print method for huxtables
set_default_properties

Set default huxtable properties
t.huxtable

Transpose a huxtable
where

Return array indices where expression is true
final

Return the last n rows or columns
font

Font
huxtable-package

Huxtable: simply create LaTeX and HTML tables
huxtable

Create a huxtable
left_border

Borders
print_screen

Print a huxtable on screen
valign

Vertical alignment
left_border_color

Border colors
row_height

Row heights
rowspan

Row span
print_latex

Create LaTeX representing a huxtable
print_md

Create Markdown representing a huxtable
pad_decimal

Decimal padding
rowspecs

Row and column specifications
set_all_border_colors

Set all border colors
wrap

Text wrapping
themes

Theme a huxtable
print_html

Create HTML representing a huxtable
width

Table width