| update.sdmTMB | R Documentation |
This method updates an sdmTMB model with new arguments, automatically handling the mesh object to avoid environment issues when loading models from saved files.
## S3 method for class 'sdmTMB'
update(object, formula., ..., evaluate = TRUE)
object |
An sdmTMB model object |
formula. |
Optional updated formula |
... |
Other arguments to update in the model call |
evaluate |
If |
An updated sdmTMB model object (if evaluate = TRUE) or
an unevaluated call (if evaluate = FALSE)
mesh <- make_mesh(pcod_2011, c("X", "Y"), cutoff = 20)
fit <- sdmTMB(density ~ 1, data = pcod_2011, mesh = mesh,
family = tweedie(link = "log"))
fit2 <- update(fit, family = delta_gamma())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.