align-methods

0th

Percentile

timeSeries Class, Functions and Methods

Aligns a 'timeSeries' Object.

Keywords
methods, chron
Usage
"align"(x, by = "1d", offset = "0s", method = c("before", "after", "interp", "fillNA", "fmm", "periodic", "natural", "monoH.FC"), include.weekends = FALSE, ...)
Arguments
x
an object of class timeSeries.
by
a character string denoting the period
offset
a character string denoting the offset
method
a character string denoting the alignment approach.
include.weekends
a logical flag, should weekend be included.
...
Further arguments to be passed to the interpolating function.
Value

Returns an aligned S4 'timeSeries' object.

Aliases
  • align
  • align-methods
  • align,timeSeries-method
Examples
library(timeSeries) ## 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)
Documentation reproduced from package timeSeries, version 3022.101.2, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.