Description Usage Arguments Examples
View source: R/huxtableUtils.R
format a dataframe into a multi page table best not to use a huxtable object with merged cells as thes will get merged. Data frame needs to be ordered and grouped if it is to be split accross pages
1 2 3 4 5 6 7 8 9 | saveMultiPageTable(
labelledDataFrame,
filename,
pageWidth = 5.9,
pageLength = 8,
defaultFontSize = 10,
tableWidth = NULL,
colWidths = NULL
)
|
filename |
file of desired output without extension. |
pageWidth |
maximum width of the desired pdf output in inches (5.9) |
pageLength |
maximum width of the desired pdf output in inches (8) |
defaultFontSize |
default size of font in points (10) |
tableWidth |
width of the table in inches or NULL to fit contents automatically |
colWidths |
a vector of relative column widths |
1 2 | setwd(tempdir())
mtcars %>% rownames_to_column() %>% arrange(gear,carb) %>% group_by(gear,carb) %>% saveMultiPageTable("carMultiTest",pageLength = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.