A step of the momento_native implementation. No other function in the package calls it.
See the file header for the source the module follows.
the source it follows.
Usage
momento_task_mask(n_patches, task = "forecast", span = 1, start = NULL)
Arguments
- n_patches
Coerced to integer by the body, with as.integer.
- task
One of "forecast", "impute". Defaults to "forecast".
- span
Coerced to integer by the body, with as.integer. Defaults to 1.
- start
Optional; may be NULL. Coerced to integer by the body, with
as.integer.
Value
The value of seq.int.
Examples
momento_task_mask(n_patches = 8, task = "forecast", span = 2) # the last two patches
#> [1] 6 7