Description Usage Arguments Value Examples
cum_var calculates an accumulated variation of a rate, _var means the data must be a percentage variation.
1 |
data |
a dataframe |
colnum |
number of column |
t |
number of periods to accumulate |
div100 |
divide data by 100, use if data is not fraction |
Return a dataframe.
1 2 3 4 5 6 | v=data.frame(c(0.03,0.02,0.05))
cum_var(v,colnum=1,t=3)
v=data.frame(c('3%','2%','5%'))
v=colpct2num(v,start=1,div100=TRUE)
cum_var(v,colnum=1,t=3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.