valueOverRollingMean: divide the value by the rolling mean of the value

Description Usage Arguments Value

View source: R/functions.R

Description

this is a simplified way of removing the trend component, prior to performing subsequent analysis, like HMM

Usage

1
valueOverRollingMean(xts.obj, window = 365)

Arguments

xts.obj

a one-column xts object

window

a window over which to apply the rolling function

Value

an xts object


noahbullock/noahfuncs documentation built on May 23, 2019, 9:29 p.m.