Learn R Programming

timeSeries (version 290.80)

align-methods: timeSeries Class, Functions and Methods

Description

Aligns a 'timeSeries' Object.

Usage

## S3 method for class 'timeSeries':
align(x, by = "1d", offset = "0s",
    method = c("before", "after", "interp", "fillNA"),
    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.

Value

  • returns an aligned S4 object of class timeSeries.

Examples

Run this code
## data -
   x <- as.timeSeries(data(msft.dat))

Run the code above in your browser using DataLab