Description Usage Arguments Value Examples
View source: R/helper_functions.R
Convert a series of index levels to period by period price movements.
1 | index_2_movement(index)
|
index |
an R vector of numeric values with no NA's |
an R vector of numeric values with lenght 1 less than that of index. The length is one shorter than the input as there is movement for the first value - as it has nothing to refer to. If index contains any NA values an error is thrown
1 2 | index <- runif(10)*1:10
index_2_movement(index)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.