its (version 0.1.1)

its-times: 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

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.

Details

daysecondIts returns the number of seconds since midnight. weekdayIts tests which entries of an irregular time-series object are time-stamped with weekdays.

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

Run this code
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)

Run the code above in your browser using DataLab