calc_chg: Calculate The Changes In A Series

Description Usage Arguments Details Value Author(s) Examples

View source: R/calc_chg.R

Description

Calculate The Changes In A Series

Usage

1
calc_chg(series)

Arguments

series

a vector of values, assumed to be an evenly-spaced time series, to calculate the changes between

Details

The amount of change between two numbers in a series is current / previous.

Value

a vector of the changes with an NA in the first position

Author(s)

George Fisher

#@description

Examples

1
2
series = c(16.66, 16.85, 16.93, 16.98, 17.08, 17.03)
calc_chg(series)

sp500SlidingWindow documentation built on May 30, 2017, 4:18 a.m.