Description Usage Arguments Value Examples
View source: R/helper_functions.R
Convert a series of Price movements to an index series
1 | movement_2_index(movement)
|
movement |
an R vector of numeric values with no NA's |
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.
1 2 | movement <- runif(10)
movement_2_index(movement)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.