Subtracts time2 from time1. If both are of class POSIXt, gives the result in hours.
Two time vectors of the same length, either both numeric of both of class POSIXt.
If time1 and time2 are both numeric then regular subtraction is used, but if
both are of class POSIXt, then
difftime is used and the result is
converted into hours.
difftime.hours does the same, but only operates on POSIXt objects.
A numeric vector containing the time difference.
Ben Rich <[email protected]>
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.