Select Time Interval
Usage
selectTimeInterval(
x,
t1 = NULL,
t2 = NULL,
width = "-7d",
posixColumn = kwb.utils::posixColumnAtPosition(x),
dbg = TRUE
)
Arguments
- x
data frame with at least one time column
- t1
first timestamp as text, in yyyy-mm-dd format
- t2
optional. last timestamp as text, in yyyy-mm-dd format
- width
interval width as text containing number and unit (one of "d" - day, "h" - hour, "m" - minute). E.g. "7d" = 7 days, "20m" = 20 minutes. The number may be negative indicating "last <number> units".
- posixColumn
name or number of column in
x
containing the relevant timestamps- dbg
if
TRUE
, debug messages are shown