leftpad_input.Rd
Pad values on the left side of input
leftpad_input(input, new_offset, padding_value = 0)
input | Module input object. List with two elements:
|
---|---|
new_offset | Offset of output. |
padding_value | Value to left-pad input with. |
Module input object. List with two elements:
A numeric vector named values
: the incidence recorded on consecutive time steps.
An integer named index_offset
: the offset, counted in number of time steps,
by which the first value in values
is shifted compared to a reference time step
This parameter allows one to keep track of the date of the first value in values
without needing to carry a date
column around.
A positive offset means values
are delayed in the future compared to the reference values.
A negative offset means the opposite.