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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
\keyword{ts}
\name{itsTimes}
\alias{itsTimes}
\alias{daysecondIts}
\alias{weekdayIts}
\title{Time Functions for Irregular Time-Series Objects}
\description{
Time functions for objects of class \code{"its"}.
}
\usage{
daysecondIts(x,...)
weekdayIts(x,...)
}
\arguments{
\item{x}{an object of class \code{"its"}}
\item{\dots}{further arguments passed to \code{\link{as.POSIXlt}}}
}
\details{
\code{daysecondIts} returns the number of seconds since midnight.
\code{weekdayIts} tests which entries of an irregular time-series object are
time-stamped with weekdays.
}
\value{
For \code{daysecondIts} a vector of decimal numbers representing the number of seconds.
For \code{weekdayIts} a vector of \code{"logical"} representing the test results
for each time.
}
\author{Giles Heywood}
\seealso{
\code{\link{ts}},
\code{\link{POSIXct}},
\code{\link{itsFile}},
\code{\link{itsLags}}
\code{\link{itsJoin}}
\code{\link{itsTimes}}
\code{\link{itsSubset}}
\code{\link{itsFin}}
\code{\link{itsInterp}}
}
\examples{
\dontrun{
its.format("\%Y-\%m-\%d \%A")
b <- newIts()
print(b)
daysecondIts(b)
weekdayIts(b)
its.format("\%Y-\%m-\%d")
}
}
|