Extract an mgcv smooth given its position in the model object
Source:R/utililties.R
get_smooths_by_id.Rd
Extract an mgcv smooth given its position in the model object
Usage
get_smooths_by_id(object, id)
# S3 method for class 'gam'
get_smooths_by_id(object, id)
# S3 method for class 'scam'
get_smooths_by_id(object, id)
# S3 method for class 'gamm'
get_smooths_by_id(object, id)
# S3 method for class 'gamm4'
get_smooths_by_id(object, id)
# S3 method for class 'list'
get_smooths_by_id(object, id)