Learn R Programming

timeSeries (version 4041.111)

is.timeSeries: Check if an object is from class 'timeSeries'

Description

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

Usage

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

Value

a logical value, TRUE or FALSE.

Arguments

x

an object.

Examples

Run this code
## 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