movement_2_index: Price movements Index levels

Description Usage Arguments Value Examples

View source: R/helper_functions.R

Description

Convert a series of Price movements to an index series

Usage

1
movement_2_index(movement)

Arguments

movement

an R vector of numeric values with no NA's

Value

an R vector of numeric values with lenght 1 greater than that of movement. The length is one longer than the input as there a reference value of 1 is inserted as the level for the first time period. If movement contains any NA values an error is thrown.

Examples

1
2
movement <- runif(10)
movement_2_index(movement)

MjStansfi/GEKS_package documentation built on May 12, 2021, 8:44 p.m.