subset.modeler {flexFitR} | R Documentation |
Subset an object of class modeler
Description
Subset an object of class modeler
Usage
## S3 method for class 'modeler'
subset(x, id = NULL, ...)
Arguments
x |
An object of class |
id |
Unique identifier to filter a |
... |
Additional parameters for future functionality. |
Value
A modeler
object.
Author(s)
Johan Aparicio [aut]
Examples
library(flexFitR)
data(dt_potato)
mod <- 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
)
print(mod)
mod_new <- subset(mod, id = 2)
print(mod_new)
[Package flexFitR version 1.2.0 Index]