Learn R Programming

runner (version 0.4.4)

.check_unresolved_difftime: Resolves time difference argument

Description

Resolves at argument passed to the runner (k or lag) checks if the argument has a valid value. If argument is a single character matching column name in the x then is replaced with the value x[[idx]]

Usage

.check_unresolved_difftime(x, k)

Value

resolved idx

Arguments

x

(data.frame)

k

(integer vector or single value)
Denoting size of the running window. If k is a single value then window size is constant for all elements, otherwise if length(k) == length(x) different window size for each element. One can also specify k in the same way as by argument in base::seq.POSIXt(). See 'Specifying time-intervals' in details section.