Learn R Programming

its (version 1.0.3)

itsTimes: 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, itsFile, itsLags itsJoin itsTimes itsSubset itsFin itsDisp itsInfo itsCumdif itsArith itsInterp

Examples

Run this code
its.format("%Y-%m-%d %A")
b <- newIts()
print(b)
daysecondIts(b)
weekdayIts(b)
its.format("%Y-%m-%d")

Run the code above in your browser using DataLab