growth {businessPlanR} | R Documentation |
Growth of a numeric vector
Description
Calculates the differences between consecutive values in a numeric vector.
Usage
growth(x, round = c("round", "ceiling", "floor"), digits = 0, init = x[1])
Arguments
x |
A numeric vector. |
round |
One of |
digits |
Integer, passed to |
init |
Numeric, the initial value to compare the first element of |
Value
A numeric vector the same length as x
.
Examples
growth(c(1,10,12,15,122))
[Package businessPlanR version 0.1-0 Index]