Extract basis dimension of a smooth
Usage
basis_size(object, ...)
# S3 method for class 'mgcv.smooth'
basis_size(object, ...)
# S3 method for class 'gam'
basis_size(object, ...)
# S3 method for class 'gamm'
basis_size(object, ...)
Arguments
- object
A fitted GAM(M). Currently
mgcv::gam()
(and anything that inherits from the"gam"
class, e.g.mgcv::bam()
) andmgcv::gamm()
are supported.- ...
Arguments passed to other methods.