View source: R/helper-functions.R
create_smooth_name | R Documentation |
Internal function for creating names for Smooth design matrix
create_smooth_name(smth)
smth |
the Smooth object, created from smoothCon of mgcv |
a vector of string, containing the column names of the spline design matrix
smth <- (
mgcv::smoothCon(object = mgcv::s(x), data = data.frame(x = rnorm(100)),
scale.penalty = TRUE,
absorb.cons = TRUE,
null.space.penalty = TRUE,
diagonal.penalty = TRUE)
)[[1]]
BHAM:::create_smooth_name(smth)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.