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.


gavinsimpson/gratia documentation built on May 4, 2024, 8:13 a.m.