smooth_dim: Dimension of a smooth

Description Usage Arguments Details Value Author(s)

Description

Extracts the dimension of an estimated smooth.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
smooth_dim(object)

## S3 method for class 'gam'
smooth_dim(object)

## S3 method for class 'gamm'
smooth_dim(object)

## S3 method for class 'mgcv.smooth'
smooth_dim(object)

Arguments

object

an R object. See Details for list of supported objects.

Details

This is a generic function with methods for objects of class "gam", "gamm", and "mgcv.smooth".

Value

A numeric vector of dimensions for each smooth.

Author(s)

Gavin L. Simpson


gavinsimpson/tsgam documentation built on May 16, 2019, 10:11 p.m.