subset.modeler | R Documentation |
modeler
Subset an object of class modeler
## S3 method for class 'modeler'
subset(x, id = NULL, ...)
x |
An object of class |
id |
Unique identifier to filter a |
... |
Additional parameters for future functionality. |
A modeler
object.
Johan Aparicio [aut]
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.