Learn R Programming

runner (version 0.4.4)

.check_unresolved_index: 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)

Value

resolved 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.