Description Usage Arguments Value See Also Examples
This function returns the differences between rows depending on the user's choice.
1 2 3 4 5 6 7 8 |
df |
The data set for which differences are required |
direction |
One of forward and reverse. The default is forward meaning the differences are calculated in such a way that the difference between the current value and the next is returned |
exclude |
A character vector specifying what classes should be removed. See examples below |
na.rm |
Logical. Should missing values be removed? The missing values referred to are those introduced during the calculation ie when subtracting a row with itself. Defaults to FALSE. |
na_action |
If na.rm is TRUE, how should missing values be replaced? Depending on the value as set out in ‘na_replace', the value can be replaced as per the user’s requirement. |
... |
Other arguments to 'na_replace'. |
A data.frame object of row differences
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.