View source: R/time_categories.R
hour_dbl | R Documentation |
Compute the time of day, in hours, from a DateTimeClasses
object, accounting for the hour of day, the number of minutes passed the hour and the number of seconds passed the minute.
hour_dbl(time)
time |
A vector of times, of the class |
The function returns a double or vector of doubles which defines/define the time of day, in hours.
Edward Lavender
hour_dbl(as.POSIXct("2016-01-01 13:01:40"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.