Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

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.