prettify: Prettify a table for HTML documents

Description Usage Arguments Value

Description

Create a data table object from a dataframe with optional aesthetic improvements. Userful for inclusion in .Rmd files being knitted to HTML

Usage

1
2
3
4
5
prettify(the_table, remove_underscores_columns = TRUE, cap_columns = TRUE,
  cap_characters = TRUE, comma_numbers = TRUE,
  date_format = "%B %d, %Y", round_digits = 2, remove_row_names = TRUE,
  remove_line_breaks = TRUE, data_table = TRUE, nrows = 5,
  download_options = FALSE, no_scroll = TRUE, scroll_x = TRUE)

Arguments

the_table

The dataframe to be prettified

remove_underscores_columns

Whether to remove underscores in column names and replace them with spaces

cap_columns

Whether to capitalize the first letter of the names of columns

cap_characters

Whether to capitalize the first letter of elements of character vectors

comma_numbers

Whether to include a comma between every three digits of numeric columns

date_format

The format for printing date columns

round_digits

How many digits to round numberic columns to

remove_row_names

Whether to remove row names

remove_line_breaks

Whether to remove line breaks from the elements of columns

nrows

The number of rows to show

download_options

Whether to show options for downloading the table

Value

A data table ready for inclusion in an .Rmd to be knitted to HTML


databrew/portfoliodash documentation built on May 3, 2019, 1:47 p.m.