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

# 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.