is.tseries: Is this object a time series?

Description Usage Arguments Value Author(s) See Also Examples

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

1

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

tseries

Examples

1
2
3
4
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

Example output

[1] TRUE
[1] FALSE

pastecs documentation built on May 2, 2019, 3:36 p.m.

Related to is.tseries in pastecs...