Description Usage Arguments Details Value Author(s)
Calculate the business hours between two datetime vectors
1 2 |
from_dates |
A vector of POSIXct objects that are date-times from when to start calculating business hours. |
to_dates |
A vector of POSIXct objects that are date-times till when to calculate business hours. |
start_time |
Start of work shift. A string in format in 24 hour format - of the day when the business hours start. |
end_time |
End of work shift. A string in format in 24 hour format- of the day when the business hours end. |
timezone |
A string that represents the timezone. Default: "" - local timezone |
calendar |
A string that represents the name of the |
Calculates the difference between two vectors of date times in terms of
business hours, where business hours is determined using the start_time and end_time
parameters. The function can be used seamlessly for night-shift calculations, eg. for
a 9pm to 6am shift, start_time
is 21:00 and end_time
is 06:00
A numeric vector that shows the difference in business hours between
from_dates
and to_dates
Sujeet G Pillai
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.