is.timeSeries {timeSeries}R Documentation

timeSeries Class, Coercion and Transformation

Description

is.timeSeries tests if its argument is a timeSeries. is.timeSeries tests if series has no timestamps.

Usage

is.timeSeries(x)
is.signalSeries(x)

Arguments

x

an R object.

Value

returns TRUE or FALSE depending on whether its argument is of timeSeries type or not.

Examples

## Create an Artificial timeSeries Object - 
   setRmetricsOptions(myFinCenter = "GMT")
   charvec = timeCalendar()
   data = matrix(rnorm(12))
   TS = timeSeries(data, charvec, units = "RAND")
   TS

## Test for timeSeries - 
   is.timeSeries(TS)

[Package timeSeries version 2160.95 Index]