timeSeries Class, Coercion and Transformation

Share:

Description

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

Usage

1
2

Arguments

x

an object of class 'timeSeries'.

Value

Returns TRUE or FALSE depending on whether its argument is an object of class 'timeSeries' or not.

Examples

1
2
3
4
5
6
7
8
9
## 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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.