combine_models {ConFluxPro} | R 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 |
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))
[Package ConFluxPro version 1.3.1 Index]