Learn R Programming

dtwSat (version 0.2.8)

resampleTimeSeries: Resample time series

Description

Resample time series in the object to have the same length.

Usage

resampleTimeSeries(object, length = NULL)

# S4 method for twdtwTimeSeries resampleTimeSeries(object, length = NULL)

Value

An object of class twdtwTimeSeries whose time series have the same number of samples (points).

Arguments

object

an object of class twdtwTimeSeries.

length

An integer. The number of samples to resample the time series to. If not declared the length is set to the length of the longest time series.

Author

Victor Maus, vwmaus1@gmail.com

See Also

twdtwTimeSeries-class, and twdtwApply

Examples

Run this code
# Resampling time series from objects of class twdtwTimeSeries
patt = twdtwTimeSeries(MOD13Q1.patterns.list)
npatt = resampleTimeSeries(patt, length=46)
nrow(patt)
nrow(npatt)

Run the code above in your browser using DataLab