# Easily Create and Style Tables for LaTeX, HTML and Other Formats

## Documentation for package ‘huxtable’ version 5.5.6

- DESCRIPTION file.
- User guides, package vignettes and other documentation.
- Package NEWS.

## Help Pages

A B C D E F G H I J K L M N O P Q R S T V W misc

huxtable-package | Quick introduction to huxtable

## -- A --

add_colnames | Add column or row names
add_colnames.huxtable | Add column or row names
add_columns | Insert one huxtable into another
add_footnote | Add a row with a footnote
add_rownames | Add column or row names
add_rownames.huxtable | Add column or row names
add_rows | Insert one huxtable into another
align | Set the horizontal alignment of cell content
align<- | Set the horizontal alignment of cell content
as_flextable | Convert a huxtable for Word/Powerpoint
as_flextable.huxtable | Convert a huxtable for Word/Powerpoint
as_hux | Convert objects to huxtables
as_huxtable | Convert objects to huxtables
as_huxtable.default | Convert objects to huxtables
as_huxtable.grouped_df | Convert objects to huxtables
as_Workbook | Convert a huxtable for Excel
as_Workbook.huxtable | Convert a huxtable for Excel

## -- B --

background_color | Set cell background color
background_color<- | Set cell background color
bold | Make cell text bold or italic
bold<- | Make cell text bold or italic
border-colors | Set border colors
border-styles | Set border styles
borders | Set borders
bottom_border | Set borders
bottom_border<- | Set borders
bottom_border<-.huxtable | Set borders
bottom_border_color | Set border colors
bottom_border_color<- | Set border colors
bottom_border_style | Set border styles
bottom_border_style<- | Set border styles
bottom_padding | Set padding
bottom_padding<- | Set padding
brdr | Create a border object
brdr_thickness | Get thickness of a 'brdr()' object
by_cases | Map cell contents to properties using 'case_when'
by_colorspace | Map numeric cell contents smoothly to colors
by_cols | Set cell properties by row or column
by_equal_groups | Map numeric quantiles to cell properties
by_function | Map cell contents to cell properties using a function or scale
by_quantiles | Map numeric quantiles to cell properties
by_ranges | Map numeric ranges to cell properties
by_regex | Map cells matching a string or regex to cell properties
by_rows | Set cell properties by row or column
by_values | Map specific cell values to cell properties

## -- C --

caption | Set the table caption
caption<- | Set the table caption
caption_pos | Position the table's caption
caption_pos<- | Position the table's caption
caption_width | Set the width of the table caption
caption_width<- | Set the width of the table caption
cbind.huxtable | Combine rows or columns
check_latex_dependencies | Manage LaTeX dependencies for huxtables
colspan | Extend cells over multiple rows and/or columns
colspan<- | Extend cells over multiple rows and/or columns
column_to_header | Convert a column to header rows
col_width | Set the width of table columns
col_width<- | Set the width of table columns
contents | Set cell contents
contents<- | Set cell contents

## -- D --

dplyr-verbs | Use dplyr verbs with huxtable objects

## -- E --

escape_contents | Escape or unescape text in cells
escape_contents<- | Escape or unescape text in cells
evens | Return every n row or column numbers
every | Return every n row or column numbers
everywhere | Return every n row or column numbers

## -- F --

final | Return the last n rows or columns
fmt_percent | Format numbers as percent
fmt_pretty | Use 'prettyNum()' to format numbers
font | Set the font for cell text
font<- | Set the font for cell text
font_size | Make text larger or smaller
font_size<- | Make text larger or smaller
format.huxtable | Format and print huxtables using a default method

## -- G --

get_default_properties | Default huxtable properties
glance.tidy_override | Change a model's 'tidy' output
guess_knitr_output_format | Guess knitr output format

## -- H --

header_cols | Mark rows or columns as headers
header_cols<- | Mark rows or columns as headers
header_rows | Mark rows or columns as headers
header_rows<- | Mark rows or columns as headers
height | Set the table height
height<- | Set the table height
hux | Create a huxtable
huxreg | Create a huxtable to display model output
huxtable | Create a huxtable
huxtable-FAQ | Frequently Asked Questions, including how to get help
huxtable-news | Changes to the huxtable package
huxtable-options | Package options
hux_logo | Huxtable logo

## -- I --

insert_column | Insert a row or column
insert_row | Insert a row or column
install_latex_dependencies | Manage LaTeX dependencies for huxtables
is_hux | Convert objects to huxtables
is_huxtable | Convert objects to huxtables
italic | Make cell text bold or italic
italic<- | Make cell text bold or italic

## -- J --

jams | Prices of 3 jams

## -- K --

knit_print.data.frame | Print data frames in knitr using huxtable
knit_print.huxtable | Print a huxtable within knitr

## -- L --

label | Set a table label for external referencing
label<- | Set a table label for external referencing
latex_float | Set the position of the table float in LaTeX
latex_float<- | Set the position of the table float in LaTeX
left_border | Set borders
left_border<- | Set borders
left_border<-.huxtable | Set borders
left_border_color | Set border colors
left_border_color<- | Set border colors
left_border_style | Set border styles
left_border_style<- | Set border styles
left_padding | Set padding
left_padding<- | Set padding

## -- M --

mapping-functions | How to set cell properties variably by cell contents
mapping_functions | How to set cell properties variably by cell contents
map_align | Set the horizontal alignment of cell content
map_all_borders | Set left, right, top and bottom properties
map_all_border_colors | Set left, right, top and bottom properties
map_all_border_styles | Set left, right, top and bottom properties
map_all_padding | Set left, right, top and bottom properties
map_background_color | Set cell background color
map_bold | Make cell text bold or italic
map_bottom_border | Set borders
map_bottom_border_color | Set border colors
map_bottom_border_style | Set border styles
map_bottom_padding | Set padding
map_colspan | Extend cells over multiple rows and/or columns
map_contents | Set cell contents
map_escape_contents | Escape or unescape text in cells
map_font | Set the font for cell text
map_font_size | Make text larger or smaller
map_italic | Make cell text bold or italic
map_left_border | Set borders
map_left_border_color | Set border colors
map_left_border_style | Set border styles
map_left_padding | Set padding
map_lr_borders | Set left, right, top and bottom properties
map_lr_border_colors | Set left, right, top and bottom properties
map_lr_border_styles | Set left, right, top and bottom properties
map_lr_padding | Set left, right, top and bottom properties
map_markdown | Interpret cell content as markdown
map_na_string | Change how NA values are printed
map_number_format | Set how numbers are formatted in cells
map_right_border | Set borders
map_right_border_color | Set border colors
map_right_border_style | Set border styles
map_right_padding | Set padding
map_rotation | Rotate text within cells
map_rowspan | Extend cells over multiple rows and/or columns
map_tb_borders | Set left, right, top and bottom properties
map_tb_border_colors | Set left, right, top and bottom properties
map_tb_border_styles | Set left, right, top and bottom properties
map_tb_padding | Set left, right, top and bottom properties
map_text_color | Set the color of text in cells
map_top_border | Set borders
map_top_border_color | Set border colors
map_top_border_style | Set border styles
map_top_padding | Set padding
map_valign | Set the vertical alignment of cell content
map_wrap | Wrap cell content over multiple lines
markdown | Interpret cell content as markdown
markdown<- | Interpret cell content as markdown
merge_across | Merge cells across rows or down columns
merge_cells | Merge a range of cells
merge_down | Merge cells across rows or down columns
merge_repeated_rows | Merge repeated rows into multirow cells
mutate | Use dplyr verbs with huxtable objects
mutate.huxtable | Use dplyr verbs with huxtable objects

## -- N --

na_string | Change how NA values are printed
na_string<- | Change how NA values are printed
nobs.tidy_override | Change a model's 'tidy' output
number_format | Set how numbers are formatted in cells
number_format<- | Set how numbers are formatted in cells

## -- O --

odds | Return every n row or column numbers

## -- P --

padding | Set padding
position | Set the table's position with respect to surrounding content
position<- | Set the table's position with respect to surrounding content
print.huxtable | Format and print huxtables using a default method
print_html | Create HTML representing a huxtable
print_latex | Create LaTeX representing a huxtable
print_md | Create Markdown representing a huxtable
print_notebook | Create HTML representing a huxtable
print_rtf | Create RTF representing a huxtable
print_screen | Print a huxtable on screen

## -- Q --

quick-output | Quickly print objects to a PDF, TeX, HTML, Microsoft Office or RTF document
quick_docx | Quickly print objects to a PDF, TeX, HTML, Microsoft Office or RTF document
quick_html | Quickly print objects to a PDF, TeX, HTML, Microsoft Office or RTF document
quick_latex | Quickly print objects to a PDF, TeX, HTML, Microsoft Office or RTF document
quick_pdf | Quickly print objects to a PDF, TeX, HTML, Microsoft Office or RTF document
quick_pptx | Quickly print objects to a PDF, TeX, HTML, Microsoft Office or RTF document
quick_rtf | Quickly print objects to a PDF, TeX, HTML, Microsoft Office or RTF document
quick_xlsx | Quickly print objects to a PDF, TeX, HTML, Microsoft Office or RTF document

## -- R --

rbind.huxtable | Combine rows or columns
report_latex_dependencies | Manage LaTeX dependencies for huxtables
restack-across-down | Restack huxtables across/down the page
restack_across | Restack huxtables across/down the page
restack_down | Restack huxtables across/down the page
right_border | Set borders
right_border<- | Set borders
right_border<-.huxtable | Set borders
right_border_color | Set border colors
right_border_color<- | Set border colors
right_border_style | Set border styles
right_border_style<- | Set border styles
right_padding | Set padding
right_padding<- | Set padding
rotation | Rotate text within cells
rotation<- | Rotate text within cells
rowspan | Extend cells over multiple rows and/or columns
rowspan<- | Extend cells over multiple rows and/or columns
rowspecs | Different ways to select rows and columns
row_height | Set the height of table rows
row_height<- | Set the height of table rows
rtf_fc_tables | Create RTF font and color tables

## -- S --

sanitize | Escape text for various formats
set-multiple | Set left, right, top and bottom properties
set-outer | Set borders and padding around a rectangle of cells
set_align | Set the horizontal alignment of cell content
set_all_borders | Set left, right, top and bottom properties
set_all_border_colors | Set left, right, top and bottom properties
set_all_border_styles | Set left, right, top and bottom properties
set_all_padding | Set left, right, top and bottom properties
set_background_color | Set cell background color
set_bold | Make cell text bold or italic
set_bottom_border | Set borders
set_bottom_border_color | Set border colors
set_bottom_border_style | Set border styles
set_bottom_padding | Set padding
set_caption | Set the table caption
set_caption_pos | Position the table's caption
set_caption_width | Set the width of the table caption
set_cell_properties | Set multiple properties on headers
set_colspan | Extend cells over multiple rows and/or columns
set_col_width | Set the width of table columns
set_contents | Set cell contents
set_default_properties | Default huxtable properties
set_escape_contents | Escape or unescape text in cells
set_font | Set the font for cell text
set_font_size | Make text larger or smaller
set_header_cols | Mark rows or columns as headers
set_header_rows | Mark rows or columns as headers
set_height | Set the table height
set_italic | Make cell text bold or italic
set_label | Set a table label for external referencing
set_latex_float | Set the position of the table float in LaTeX
set_left_border | Set borders
set_left_border_color | Set border colors
set_left_border_style | Set border styles
set_left_padding | Set padding
set_lr_borders | Set left, right, top and bottom properties
set_lr_border_colors | Set left, right, top and bottom properties
set_lr_border_styles | Set left, right, top and bottom properties
set_lr_padding | Set left, right, top and bottom properties
set_markdown | Interpret cell content as markdown
set_markdown_contents | Set cell contents, interpreting them as markdown
set_na_string | Change how NA values are printed
set_number_format | Set how numbers are formatted in cells
set_outer_borders | Set borders and padding around a rectangle of cells
set_outer_border_colors | Set borders and padding around a rectangle of cells
set_outer_border_styles | Set borders and padding around a rectangle of cells
set_outer_padding | Set borders and padding around a rectangle of cells
set_position | Set the table's position with respect to surrounding content
set_right_border | Set borders
set_right_border_color | Set border colors
set_right_border_style | Set border styles
set_right_padding | Set padding
set_rotation | Rotate text within cells
set_rowspan | Extend cells over multiple rows and/or columns
set_row_height | Set the height of table rows
set_table_environment | Set the "table" environment in LaTeX
set_tabular_environment | Set the table's tabular environment in LaTeX
set_tb_borders | Set left, right, top and bottom properties
set_tb_border_colors | Set left, right, top and bottom properties
set_tb_border_styles | Set left, right, top and bottom properties
set_tb_padding | Set left, right, top and bottom properties
set_text_color | Set the color of text in cells
set_top_border | Set borders
set_top_border_color | Set border colors
set_top_border_style | Set border styles
set_top_padding | Set padding
set_valign | Set the vertical alignment of cell content
set_width | Set the table width
set_wrap | Wrap cell content over multiple lines
spans | Extend cells over multiple rows and/or columns
split-across-down | Split a huxtable into multiple huxtables
split_across | Split a huxtable into multiple huxtables
split_down | Split a huxtable into multiple huxtables
stripe | Return every n row or column numbers
stripes | Set background color stripes
stripe_columns | Set background color stripes
stripe_rows | Set background color stripes
style-functions | Set multiple properties on headers
style_cells | Set multiple properties on headers
style_headers | Set multiple properties on headers
style_header_cols | Set multiple properties on headers
style_header_rows | Set multiple properties on headers

## -- T --

t.huxtable | Transpose a huxtable
table_environment | Set the "table" environment in LaTeX
table_environment<- | Set the "table" environment in LaTeX
tabular_environment | Set the table's tabular environment in LaTeX
tabular_environment<- | Set the table's tabular environment in LaTeX
text_color | Set the color of text in cells
text_color<- | Set the color of text in cells
themes | Theme a huxtable
theme_article | Theme a huxtable
theme_basic | Theme a huxtable
theme_blue | Theme a huxtable
theme_bright | Theme a huxtable
theme_compact | Theme a huxtable
theme_green | Theme a huxtable
theme_grey | Theme a huxtable
theme_mondrian | Theme a huxtable
theme_orange | Theme a huxtable
theme_plain | Theme a huxtable
theme_striped | Theme a huxtable
tidy.tidy_override | Change a model's 'tidy' output
tidy_override | Change a model's 'tidy' output
tidy_replace | Change a model's 'tidy' output
top_border | Set borders
top_border<- | Set borders
top_border<-.huxtable | Set borders
top_border_color | Set border colors
top_border_color<- | Set border colors
top_border_style | Set border styles
top_border_style<- | Set border styles
top_padding | Set padding
top_padding<- | Set padding
to_html | Create HTML representing a huxtable
to_html.huxtable | Create HTML representing a huxtable
to_latex | Create LaTeX representing a huxtable
to_latex.huxtable | Create LaTeX representing a huxtable
to_md | Create Markdown representing a huxtable
to_md.huxtable | Create Markdown representing a huxtable
to_rtf | Create RTF representing a huxtable
to_rtf.huxtable | Create RTF representing a huxtable
to_screen | Print a huxtable on screen
to_screen.huxtable | Print a huxtable on screen
tribble_hux | Create a huxtable

## -- V --

valign | Set the vertical alignment of cell content
valign<- | Set the vertical alignment of cell content

## -- W --

width | Set the table width
width<- | Set the table width
wrap | Wrap cell content over multiple lines
wrap<- | Wrap cell content over multiple lines

## -- misc --

$<-.huxtable | Subset a huxtable
[.huxtable | Subset a huxtable
[<-.huxtable | Subset a huxtable
[[<-.huxtable | Subset a huxtable
`bottom_border<-` | Set borders
`bottom_border_color<-` | Set border colors
`bottom_border_style<-` | Set border styles
`left_border<-` | Set borders
`left_border_color<-` | Set border colors
`left_border_style<-` | Set border styles
`right_border<-` | Set borders
`right_border_color<-` | Set border colors
`right_border_style<-` | Set border styles
`top_border<-` | Set borders
`top_border_color<-` | Set border colors
`top_border_style<-` | Set border styles