Write a a character vector containing Excel formula to a worksheet.
Use wb_add_formula()
or add_formula()
in new code. This function is meant
for internal use.
write_formula(
wb,
sheet,
x,
dims = wb_dims(start_row, start_col),
start_col = 1,
start_row = 1,
array = FALSE,
cm = FALSE,
apply_cell_style = TRUE,
remove_cell_style = FALSE,
...
)
A Workbook object containing a worksheet.
The worksheet to write to. (either as index or name)
A formula as character vector.
Spreadsheet dimensions that will determine where x
spans: "A1", "A1:B2", "A:B"
A vector specifying the starting column to write to.
A vector specifying the starting row to write to.
A bool if the function written is of type array
A special kind of array function that hides the curly braces in the cell. Add this, if you see "@" inserted into your formulas.
Should we write cell styles to the workbook?
Should we keep the cell style?
additional arguments