combine_models: Combine models

View source: R/combine_models.R

combine_modelsR Documentation

Combine models

Description

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.

Value

An object of the same type as the first object in x.

Examples

mod1 <- filter(base_dat, site == "site_a")
mod2 <- filter(base_dat, site == "site_b")
combine_models(list(mod1, mod2))

# use a reference model for coercion
combine_models_by_reference(mod1, list(mod1, mod2))

ConFluxPro documentation built on Aug. 8, 2025, 7:01 p.m.