Reverse a 'timeSeries'
base-rev.Rd
Reverses an uni- or multivariate "timeSeries"
object.
Usage
# S3 method for timeSeries
rev(x)
Examples
set.seed(1234)
## Create Dummy "timeSeries"
tS <- dummyMonthlySeries()
## reverse series
rev(tS)
#> GMT
#> TS.1 TS.2
#> 2024-12-01 0.544974836 0.03999592
#> 2024-11-01 0.693591292 0.15904600
#> 2024-10-01 0.514251141 0.30269337
#> 2024-09-01 0.666083758 0.31661245
#> 2024-08-01 0.232550506 0.23222591
#> 2024-07-01 0.009495756 0.18672279
#> 2024-06-01 0.640310605 0.26682078
#> 2024-05-01 0.860915384 0.28622328
#> 2024-04-01 0.623379442 0.83729563
#> 2024-03-01 0.609274733 0.29231584
#> 2024-02-01 0.622299405 0.92343348
#> 2024-01-01 0.113703411 0.28273358