Learn R Programming

exdex (version 1.0.1)

nobs.spm: Extract the Number of Observations from an "spm" object

Description

nobs method for class c("spm", "exdex").

Usage

# S3 method for spm
nobs(object, maxima = c("sliding", "disjoint"), ...)

Arguments

object

and object of class c("spm", "exdex") returned from spm.

maxima

A character scalar specifying whether to return the number of observed sliding maxima or disjoint maxima.

...

Further arguments. None are used.

Value

A numeric scalar: the number of observations used in the fit.