sort {timeSeries}R Documentation

Sorting a 'timeSeries' by Time Stamps

Description

Sorts a 'timeSeries' according to increasing or decreasing order of the time stamps.

Usage

## S4 method for signature 'timeSeries'
sort(x, decreasing = FALSE, ...)

Arguments

x

an uni- or multivariate timeSeries object.

decreasing

a logical flag. Should we sort in increasing or decreasing order? By default FALSE.

...

optional arguments passed to other methods.

Value

returns a timeSeries object.

Examples

   
## Create Dummy timeSeries -    
   tS <- dummySeries()
   
## Sort the Series in Decreasing Order -    
   sort(tS, decreasing = TRUE)
     
## Sort the Series -
   sort(tS)
   


[Package timeSeries version 2160.95 Index]