Learn R Programming

gratia (version 0.8.1)

get_smooths_by_id: Extract an mgcv smooth given its position in the model object

Description

Extract an mgcv smooth given its position in the model object

Usage

get_smooths_by_id(object, id)

Arguments

object

a fitted GAM model object.

id

numeric; the position of the smooth in the model object.