hours | R Documentation |
Given a chron or times object, extract the hours, minutes or seconds of the time it represents.
hours(x)
minutes(x)
seconds(x)
x |
an object inheriting from class |
the corresponding time period as an ordered factor.
chron
,
dates
,
times
x <- chron(dates. = c("02/27/92", "02/27/92", "01/14/92", "02/28/92"),
times. = c("23:03:20", "22:29:56", "01:03:30", "18:21:03"))
h <- hours(x)
y <- runif(4)
boxplot(y ~ h)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.