Description Usage Arguments Value Examples
View source: R/write_custom_excel.R
A Wrapper around openxlsx::write.xlsx
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | write_custom_xlsx(
x,
file,
asTable = F,
borders = "columns",
keepNA = F,
colWidths = 8.43,
freeze_firstRow = F,
freeze_firstCol = F,
head_text = "bold",
head_fgfill = "#d9ead3",
head_border = "TopBottomLeftRight",
head_halign = "center",
head_valign = "center",
return_wb = F,
...
)
|
x |
Object or a list of objects that can be handled by |
file |
xlsx file name |
asTable |
Write using writeDataTable as opposed to writeData |
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 |
May be a single value for all columns (or "auto"), or a list of vectors that will be recycled for each sheet |
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
1 | # write_custom_xlsx(list(a = iris, b = mtcars), "path/to/file.xlsx")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.