Rename columns and merge estimate and uncertainty columns for table presentation

merge_error(table_data, uncert_lab, fleets, label, unit_label)

Arguments

table_data

list of dataframes that will be eventually turned into tables

uncert_lab

uncertainty label. Typically inherited from another function but is the exact string of the uncertainty in the data (e.g., "sd", "se", "cv", "uncertainty").)

fleets

Vector of fleet names.

label

Label name of target quantity that is being presented by the table.

unit_label

String. The units of the estimate being presented in the table.

Value

List of formatted dataframes that contain column names formatted for a table along with a merge of values in the estimate and error columns to reduce redundancy in the table.