powered by
Aligns a "timeSeries" object to equidistant time stamps.
"timeSeries"
# S4 method for timeSeries align(x, by = "1d", offset = "0s", method = c("before", "after", "interp", "fillNA", "fmm", "periodic", "natural", "monoH.FC"), include.weekends = FALSE, ...)
a "timeSeries" object.
an object of class timeSeries.
timeSeries
a character string denoting the period.
a character string denoting the offset.
a character string denoting the alignment approach.
a logical flag, should weekends be included.
further arguments to be passed to the interpolating function.
:TODO:
## Use MSFT and Compute Sample Size - dim(MSFT) ## Align the Series - MSFT.AL <- align(MSFT) ## Show the Size of the Aligned Series - dim(MSFT.AL)
Run the code above in your browser using DataLab