Learn R Programming

gratia (version 0.9.0)

term_names: Extract names of all variables needed to fit a GAM or a smooth

Description

Extract names of all variables needed to fit a GAM or a smooth

Usage

term_names(object, ...)

# S3 method for gam term_names(object, ...)

# S3 method for mgcv.smooth term_names(object, ...)

# S3 method for gamm term_names(object, ...)

Value

A vector of variable names required for terms in the model

Arguments

object

a fitted GAM object (inheriting from class "gam" or an mgcv::smooth.construct smooth object, inheriting from class "mgcv.smooth".

...

arguments passed to other methods. Not currently used.