Split an extra-wide table into multiple tables
render_lg_table(report_flextable, essential_columns, tables_dir, plot_name)The extra-wide flextable.
The columns that will be retained between the split tables, formatted as a sequence (e.g., 1:2 for columns 1-2, or 1 for a single column. Example: for the indices table, this could be the year column.
The location of the "tables" folder, which contains tables files.
Name of the .rda file containing the table
A list of the split tables.
if (FALSE) { # \dontrun{
render_lg_table(
report_flextable = indices_table,
essential_columns = 1,
tables_dir = here::here(),
plot_name = "indices.abundance_table.rda"
)
render_lg_table(
report_flextable = important_table,
essential_columns = 1:3,
tables_dir = "data",
plot_name = "bnc_table.rda"
)
} # }