Learn R Programming

gratia (version 0.9.0)

get_smooth: Extract an mgcv smooth by name

Description

Extract an mgcv smooth by name

Usage

get_smooth(object, term)

Value

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

Arguments

object

a fitted GAM model object.

term

character; the name of a smooth term to extract