Skip to contents

Combinea list of multiple models or cfp_dat() objects into a single object.

Usage

combine_models(x)

# S3 method for class 'cfp_altres'
combine_models(x)

# S3 method for class 'list'
combine_models(x)

combine_models_by_reference(x_ref, x)

Arguments

x

A list of models, must inherit from cfp_dat()

x_ref

Reference element of x that controls the return class and attributes.

Examples

mod1 <- filter(base_dat, site == "site_a")
mod2 <- filter(base_dat, site == "site_b")
combine_models(list(mod1, mod2))
#> 
#> validating datasets
#> id_cols: site, Date, gas, cmb_id
#> 24 unique profiles