apply_styling | R Documentation |
Applies formatting to a gt table based on information extracted from the spreadsheet file.
apply_styling(gt_object, formatRdy)
gt_object |
A gt object. |
formatRdy |
A data frame with formatting definitions. |
A great table!
example_spreadsheet <- system.file("extdata/rodentsheet.xlsx", package = "forgts")
sprdsht_data <- readxl::read_excel(example_spreadsheet)
gt_table <- gt::gt(sprdsht_data)
format_long <- get_formatting(example_spreadsheet)
format_ready <- translate_defs(format_long)
apply_styling(gt_table, format_ready)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.