Check if an object is from class 'timeSeries'
methods-is.Rd
is.timeSeries
tests if its argument is a timeSeries
.
is.signalSeries
tests if series has no timestamps.
Examples
## Create an artificial 'timeSeries' object -
setRmetricsOptions(myFinCenter = "GMT")
charvec <- timeCalendar()
data <- matrix(rnorm(12))
TS <- timeSeries(data, charvec, units = "RAND")
TS
#> GMT
#> RAND
#> 2024-01-01 0.218294507
#> 2024-02-01 1.765548038
#> 2024-03-01 1.142419102
#> 2024-04-01 -0.591197334
#> 2024-05-01 -0.617830511
#> 2024-06-01 -0.761016948
#> 2024-07-01 -0.287532357
#> 2024-08-01 -2.559374272
#> 2024-09-01 -1.839761220
#> 2024-10-01 1.672603722
#> 2024-11-01 -1.272653368
#> 2024-12-01 0.001369812
## Test for 'timeSeries' -
is.timeSeries(TS)
#> [1] TRUE