powered by
How many smooths in a fitted model
n_smooths(object)# S3 method for default n_smooths(object)# S3 method for gam n_smooths(object)# S3 method for gamm n_smooths(object)# S3 method for bam n_smooths(object)
# S3 method for default n_smooths(object)
# S3 method for gam n_smooths(object)
# S3 method for gamm n_smooths(object)
# S3 method for bam n_smooths(object)
a fitted GAM or related model. Typically the result of a call to mgcv::gam(), mgcv::bam(), or mgcv::gamm().
mgcv::gam()
mgcv::bam()
mgcv::gamm()