sample {timeSeries}R Documentation

sample

Description

Takes a sample of the specified size from the elements of a 'timeSeries.

Value

Returns a resampled 'timeSeries' object.

Examples

   
## Monthly Calendar Series -    
   x <- daily2monthly(LPP2005REC[, 1:2])[3:14, ]
   
## Resample the Series with respect to the time stamps -    
   resampled <- sample(x)
   resampled
   is.unsorted(resampled)

[Package timeSeries version 3062.100 Index]