Writes the named list produced by cr_tables(). Excel output can go
into one workbook with a sheet per table; CSV always writes one file
per table into a directory, because a CSV file holds exactly one
table.
Usage
cr_export_tables(tables, path, format = c("csv", "xlsx"), one_file = TRUE)Arguments
- tables
A named list of data frames, or a single data frame.
- path
Destination. For a single Excel workbook this is the file path; otherwise it is a directory, which is created when needed.
- format
"csv"(default) or"xlsx".- one_file
Whether to write one Excel workbook with a sheet per table. Ignored for CSV.
See also
cr_tables(), cr_export_results().
Other reporting:
cr_export_plots(),
cr_export_results(),
cr_render_report(),
cr_report(),
cr_table_qc(),
cr_tables()
Examples
exp <- cr_example_experiment(seed = 1, n_cells_per_well = 20)
tabs <- cr_tables(exp)
out <- tempfile("tables_")
paths <- cr_export_tables(tabs, out)
basename(paths)
#> [1] "disposition.csv" "design.csv" "channels.csv"