Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

is.tseries

Is this object a time series?


Description

This is equivalent to is.rts() in Splus and to is.ts() in R. is.tseries() recognizes both 'rts' and 'ts' objects whatever the environment (Splus or R)

Usage

is.tseries(x)

Arguments

x

an object

Value

a boolean value

Author(s)

Philippe Grosjean (phgrosjean@sciviews.org), Frédéric Ibanez (ibanez@obs-vlfr.fr)

See Also

Examples

tser <- ts(sin((1:100)/6*pi)+rnorm(100, sd=0.5), start=c(1998, 4), frequency=12)
is.tseries(tser)      # TRUE
not.a.ts <- c(1,2,3)
is.tseries(not.a.ts)  # FALSE

pastecs

Package for Analysis of Space-Time Ecological Series

v1.3.21
GPL-2
Authors
Philippe Grosjean [aut, cre], Frederic Ibanez [aut], Michele Etienne [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.