find_smooth | R Documentation |
Return the names of smooth terms from a model object.
find_smooth(x, flatten = FALSE)
x |
A (gam) model. |
flatten |
Logical, if |
A character vector with the name(s) of the smooth terms.
data(iris)
model <- mgcv::gam(Petal.Length ~ Petal.Width + s(Sepal.Length), data = iris)
find_smooth(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.