chgr | R Documentation |
Function for generating the n-period absolute change
chgr(x, n = 1)
x |
The time series for the change to be calculated. |
n |
The period for the growth to be calculated over. |
In order to ensure the change calculated is reliable, the following rule are applied.
50% of the data must be present.
The length of the time series must be greater than n
Otherwise the growth will not be computed.
The n-period change of the time series.
test.ts = abs(rnorm(100))
chgr(test.ts, 1)
chgr(test.ts, 3)
chgr(test.ts, 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.