growth | R Documentation |
growth
return the decimal growth rate of a numeric vector. It employs data.table:::shift() to achieve the best performance.
growth(x)
x |
A numeric vector. |
The decimal growth rate of vector x
. The first element will be NA.
growth(c(1, 2, 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.