| sort {timeSeries} | R Documentation |
Sorts a 'timeSeries' according to increasing or decreasing order of the time stamps.
## S4 method for signature 'timeSeries' sort(x, decreasing = FALSE, ...)
x |
an uni- or multivariate |
decreasing |
a logical flag. Should we sort in increasing or decreasing order? By default FALSE. |
... |
optional arguments passed to other methods. |
returns a timeSeries object.
## Create Dummy timeSeries -
tS <- dummySeries()
## Sort the Series in Decreasing Order -
sort(tS, decreasing = TRUE)
## Sort the Series -
sort(tS)