Description Usage Arguments Value
consecutive.diff.time
1 | consecutive.diff.time(df, c1, c2, nm = "consec.diff", sc)
|
df |
the dataframe |
c1 |
a column name of a POSIXct column |
c2 |
a column name of a POSIXct column |
nm |
new column name |
sc |
screening column |
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], except where a screening column, sc, is TRUE, in which case the new column entry is NA for that row.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.