hours | R Documentation |
Extracts as numbers various time-of-day periods from a time vector.
hours(x) minutes(x) seconds(x) yeardays(x)
x |
the |
returns a numeric vector of hours, minutes, seconds, or year-days
of x
for the respective function.
Hours are integers between 0 and 23.
Minutes are integers between 0 and 59.
Seconds are numbers including the fractions of a second.
Yeardays are the day number of the year (a number between 1 and 366).
days
, hms
.
x <- timeDate(c("1/1/1998 3:05:23.4", "5/10/2005 2:15:11.234 PM")) hours(x) minutes(x) seconds(x) yeardays(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.