Description Usage Arguments Value
consecutive diff
1  | consecutive.diff(df, c1, c2, nm = "consec.diff")
 | 
df | 
 the dataframe  | 
c1 | 
 a column name of a numerical column  | 
c2 | 
 a column name of a numerical column  | 
nm | 
 new column name  | 
a dataframe which is a copy of df with a new column added, with name given by the parameter nm. Each entry of this new column is equal to [the entry in that row of c2] - [the entry in c1 from the row above]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.