write_worksheet | R Documentation |
This function is similar to openxlsx::writeData()
from the
package, but rather than just writing data.frames
,
write_worksheet()
supports specialized methods for the various
Tatoo_table
subclasses.
write_worksheet(
x,
wb,
sheet,
append = FALSE,
start_row = 1L,
...,
named_regions = TRUE,
named_regions_prefix = NA_character_
)
## S3 method for class 'Tagged_table'
write_worksheet(
x,
wb,
sheet = sanitize_excel_sheet_names(attr(x, "meta")$table_id),
append = FALSE,
start_row = 1L,
...,
print_table_id = attr(x, "meta")[[".print_table_id"]],
named_regions = TRUE,
named_regions_prefix = NA_character_
)
## S3 method for class 'Composite_table'
write_worksheet(
x,
wb,
sheet,
append = FALSE,
start_row = 1L,
...,
named_regions = TRUE,
named_regions_prefix = NA_character_
)
## S3 method for class 'Mashed_table'
write_worksheet(
x,
wb,
sheet,
append = FALSE,
start_row = 1L,
mash_method = attr(x, "mash_method"),
id_vars = attr(x, "id_vars"),
insert_blank_row = attr(x, "insert_blank_row"),
sep_height = attr(x, "sep_height"),
...,
named_regions = TRUE,
named_regions_prefix = NA_character_
)
## S3 method for class 'Stacked_table'
write_worksheet(
x,
wb,
sheet,
append = FALSE,
start_row = 1L,
spacing = attr(x, "spacing"),
...,
named_regions = TRUE,
named_regions_prefix = NA_character_
)
x |
A |
wb |
An openxlsx |
sheet |
The worksheet to write to. Can be the worksheet index or name. |
append |
|
start_row |
A scalar integer specifying the starting row to write to. |
... |
Additional arguments passed on to methods for overriding the
styling attributes of the |
named_regions |
|
named_regions_prefix |
|
print_table_id |
|
mash_method |
either |
id_vars |
If |
insert_blank_row |
Only if mashing rows: logical. Whether to insert blank rows between mash-groups. Warning: this converts all columns to character. Use with care. |
sep_height |
Only has an effect when exporting to |
spacing |
Number of lineskips between the tables when exporting to xlsx |
an openxlsx Workbook object
Other xlsx exporters:
as_workbook()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.