its-times {its}R Documentation

Time Functions for Irregular Time-Series Objects

Description

Time functions for objects of class "its".

Usage

daysecondIts(x,...)
weekdayIts(x,...)

Arguments

x an object of class "its"
... further arguments passed to as.POSIXlt

Details

daysecondIts returns the number of seconds since midnight.

weekdayIts tests which entries of an irregular time-series object are time-stamped with weekdays.

Value

For daysecondIts a vector of decimal numbers representing the number of seconds.
For weekdayIts a vector of "logical" representing the test results for each time.

Author(s)

Giles Heywood

See Also

ts, POSIXct, its-file, its-lags its-join its-times its-subset its-fin its-disp its-info its-cumdif its-arith

Examples


its.format("%Y-%m-%d %A")
a <- matrix(c(seq(by=24*60*60,length=20),1:20,41:60),nrow=20,ncol=3)
b <- as.its(a)
print(b)
daysecondIts(b)
weekdayIts(b)


[Package Contents]