Description Usage Arguments Examples
Function that takes a numeric vector and outputs the difference between each succsessive member. It also needs to know where to place a 0 - either at the end of the vector (matching each difference with where it left from) or at the beginning of the vector (matching each difference with where it goes to).
1 |
x |
a numeric vector (can be dates, etc) |
end_at_0 |
decision on where to place the 0 to return vector of the same length. Defaults to TRUE, indicating the output matches with where the element is leaving from. |
sub_0 |
What this places for the end_at_0 parameter. Defaults to 0 |
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.