Use wb_add_data()
or write_xlsx()
in new code.
write_data(
wb,
sheet,
x,
dims = wb_dims(start_row, start_col),
start_col = 1,
start_row = 1,
array = FALSE,
col_names = TRUE,
row_names = FALSE,
with_filter = FALSE,
sep = ", ",
name = NULL,
apply_cell_style = TRUE,
remove_cell_style = FALSE,
na.strings = na_strings(),
inline_strings = TRUE,
...
)
invisible(0)
A Workbook object containing a worksheet.
The worksheet to write to. Can be the worksheet index or name.
Object to be written. For classes supported look at the examples.
Spreadsheet cell range that will determine start_col
and start_row
: "A1", "A1:B2", "A:B"
A vector specifying the starting column to write x
to.
A vector specifying the starting row to write x
to.
A bool if the function written is of type array
If TRUE
, column names of x
are written.
If TRUE
, the row names of x
are written.
If TRUE
, add filters to the column name row.
NOTE: can only have one filter per worksheet.
Only applies to list columns. The separator used to collapse list
columns to a character vector e.g. sapply(x$list_column, paste, collapse = sep)
.
The name of a named region if specified.
Should we write cell styles to the workbook
keep the cell style?
Value used for replacing NA
values from x
. Default
na_strings()
uses the special #N/A
value within the workbook.
write characters as inline strings
additional arguments