.check_unresolved_index {runner} | R Documentation |
Resolves index argument
Description
Resolves at
argument passed to the runner
-
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_index(x, idx)
Arguments
x |
(data.frame )
|
idx |
(integer , Date , POSIXt )
Optional integer vector containing sorted (ascending) index of observation.
By default idx is index incremented by one. User can provide index with
varying increment and with duplicated values. If specified then k and
lag are depending on idx . Length of idx have to be equal of length
x .
|
Value
resolved idx
[Package
runner version 0.4.4
Index]