| buildWorkbook {openxlsx} | R Documentation |
Build a workbook from a data.frame or named list
buildWorkbook(x, asTable = FALSE, ...)
x |
A data.frame or a (named) list of objects that can be handled by
|
asTable |
If |
... |
Additional arguments passed to |
This function can be used as shortcut to create a workbook object from a
data.frame or named list. If names are available in the list they will be
used as the worksheet names. The parameters in ... are collected
and passed to writeData or writeDataTable to
initially create the Workbook objects then appropriate parameters are
passed to setColWidths.
A Workbook object
Jordan Mark Barbone
x <- data.frame(a = 1, b = 2) wb <- buildWorkbook(x) y <- list(a = x, b = x, c = x) buildWorkbook(y, asTable = TRUE) buildWorkbook(y, asTable = TRUE, tableStyle = "TableStyleLight8")