Skip to contents

Extracts data for either biomass or some other metric based on the given models in the list M. The function formats the data into a consistent structure for further processing.

Usage

.get_ats_df(M, biomass = TRUE)

Arguments

M

A list of model outputs. Each item should contain at least the elements yr_ats, ob_ats, eb_ats, sd_ob_ats, ot_ats, et_ats, and sd_ot_ats.

biomass

A logical flag. If TRUE, data extracted is for biomass; if FALSE, data for another metric is extracted. Default is TRUE.

Value

A dataframe with columns: year, Model, obs, pre, lb, and ub.