saveMultiPageTableLandscape: format a dataframe into a multi page table that is landscape...

Description Usage Arguments Examples

View source: R/huxtableUtils.R

Description

format a dataframe into a multi page table that is landscape in orientation

Usage

1
2
3
4
5
6
7
8
9
saveMultiPageTableLandscape(
  labelledDataFrame,
  filename,
  pageWidth = 5.9,
  pageLength = 8,
  defaultFontSize = 10,
  tableWidth = NULL,
  colWidths = NULL
)

Arguments

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

Examples

1
2
3
setwd(tempdir())
library(dplyr)
mtcars %>% rownames_to_column() %>% arrange(gear,carb) %>% group_by(gear,carb) %>% saveMultiPageTableLandscape("carMultiTest",pageWidth=2,pageLength = 5.9)

terminological/standard-print-output documentation built on July 18, 2021, 9:29 a.m.