time_diff | R Documentation |
Compute time difference of two POSIXct objects
time_diff(ds1, ds2, units = "days")
ds1 |
POSIXct object |
ds2 |
POSIXct object |
units |
string units of difference, e.g. 'days' or 'secs'. |
numeric time difference
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.