Learn R Programming

timeSeries (version 280.75)

is.timeSeries: timeSeries Class, Coercion and Transformation

Description

is.timeSeries tests if its argument is a timeSeries.

Usage

is.timeSeries(x)

Arguments

x
an R object.

Value

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

Examples

Run this code
## data - timeSeries:
   # 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)

Run the code above in your browser using DataLab