View source: R/Module_calcPercChangeSimple.R
calcPercChangeSimple | R Documentation |
this function just does a basic percent change calculation on a single vector. calcPercChange() applies the same basic calc retrospectively to a data frame of Year x Stock, Note: for now this simply replicates the internal function per.change.mod.fast
calcPercChangeSimple(vec.in)
vec.in |
a vector of values. NA are possible, but will result in NA trend (no infill for now) |
calcPercChangeSimple(vec.in = as.vector(Nile))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.