File: hours.Rd

package info (click to toggle)
chron 2.3-24-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 216 kB
  • ctags: 8
  • sloc: ansic: 127; makefile: 1
file content (36 lines) | stat: -rw-r--r-- 772 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
\name{hours}
\alias{hours}
\alias{minutes}
\alias{seconds}
\title{
  Return Hours, Minutes, or Seconds from a Times Object
}
\description{
  Given a chron or times object, extract the hours, minutes or seconds
  of the time it represents.
}
\usage{
hours(x)
minutes(x)
seconds(x)
}
\arguments{
  \item{x}{an object inheriting from class \code{"\link{times}"}, or
    coercible to such via \code{\link{as.chron}}.}
}
\value{
  the corresponding time period as an ordered factor.
}
\examples{
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)
}
\seealso{
  \code{\link{chron}},
  \code{\link{dates}},
  \code{\link{times}}
}
\keyword{chron}