View source: R/write_custom_xlsx.R
write_custom_xlsx | R Documentation |
My custom wrapper around openxlsx::write.xlsx()
.
write_custom_xlsx(
x,
file,
asTable = FALSE,
borders = "columns",
keepNA = FALSE,
colWidths_auto = TRUE,
freeze_firstRow = FALSE,
freeze_firstCol = FALSE,
head_text = "bold",
head_fgfill = "#d9ead3",
head_border = "TopBottomLeftRight",
head_halign = "center",
head_valign = "center",
return_wb = TRUE,
...
)
x |
Object or a list of objects that can be handled by |
file |
file name in |
asTable |
Write using |
borders |
Cell borders, Either "surrounding", "columns" or "rows" or NULL. If "surrounding", a border is drawn around the data. If "rows", a surrounding border is drawn a border around each row. If "columns", a surrounding border is drawn with a border between each column. If "all" all cell borders are drawn |
keepNA |
If |
colWidths_auto |
If |
freeze_firstRow |
If |
freeze_firstCol |
If |
head_text |
Header text styling - one of "bold", "strikeout", "italic", "underline", "underline2" (passed to |
head_fgfill |
Header cell foreground fill colour. (passed to |
head_border |
Header Cell border. A vector of "top", "bottom", "left", "right" or a single string). (passed to |
head_halign |
Header Horizontal alignment of cell contents (passed to |
head_valign |
Header Vertical alignment of cell contents (passed to |
return_wb |
If |
... |
to |
Input Data x
or workbook object
## Not run:
write_custom_xlsx(list(a = iris, b = mtcars), "my_analysis.xlsx")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.