methods-is: Check if an object is from class 'timeSeries'

is.timeSeriesR Documentation

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)

Arguments

x

an object.

Value

a logical value, TRUE or FALSE.

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)

timeSeries documentation built on Sept. 30, 2024, 9:15 a.m.