get_smooth: Extract an mgcv smooth by name

get_smoothR Documentation

Extract an mgcv smooth by name

Description

Extract an mgcv smooth by name

Usage

get_smooth(object, term)

Arguments

object

a fitted GAM model object.

term

character; the name of a smooth term to extract

Value

A single smooth object, or a list of smooths if several match the named term.


gratia documentation built on Feb. 16, 2023, 10:40 p.m.