timeSeries (version 3022.101.2)

sample: sample

Description

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

Arguments

Value

Returns a resampled 'timeSeries' object.

Examples

Run this code
## 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)

Run the code above in your browser using DataLab