percent_change.Rdpercentage change of a vector from something, typically the first element
percent_change(vec, from = vec[1])
| vec | An integer or numeric vector |
|---|---|
| from | An integer or a number |
A integer or numeric vector indicating percentage change
#> [1] 100 0 200