c.modeler: Combine objects of class 'modeler'

View source: R/10_combining.R

c.modelerR Documentation

Combine objects of class modeler

Description

Combine objects of class modeler. Use with caution, some functions might not work as expected.

Usage

## S3 method for class 'modeler'
c(...)

Arguments

...

Objects of class modeler, typically the result of calling modeler().

Value

A modeler object.

Author(s)

Johan Aparicio [aut]

Examples

library(flexFitR)
data(dt_potato)
mod_1 <- dt_potato |>
  modeler(
    x = DAP,
    y = Canopy,
    grp = Plot,
    fn = "fn_logistic",
    parameters = c(a = 0.199, t0 = 47.7, k = 100),
    subset = 1:2
  )
mod_2 <- dt_potato |>
  modeler(
    x = DAP,
    y = Canopy,
    grp = Plot,
    fn = "fn_lin_plat",
    parameters = c(t1 = 45, t2 = 80, k = 100),
    subset = 1:2
  )
mod <- c(mod_1, mod_2)
print(mod)
plot(mod, id = 1:2)

flexFitR documentation built on April 16, 2025, 5:09 p.m.