X-Git-Url: https://git.auder.net/?p=talweg.git;a=blobdiff_plain;f=pkg%2FR%2FJ_Neighbors.R;h=7ca00035bdbd0c6a39797e6d28540a9b560b2d98;hp=3c9bc30df25f21bd7b714f77c08d7f6ce4fea184;hb=ee8b1b4e3c13f8dcf13a2c8da6a3bef1520c8252;hpb=a866acb3c0ae138b22df9dae9ec576b866794417 diff --git a/pkg/R/J_Neighbors.R b/pkg/R/J_Neighbors.R index 3c9bc30..7ca0003 100644 --- a/pkg/R/J_Neighbors.R +++ b/pkg/R/J_Neighbors.R @@ -6,7 +6,7 @@ getNeighborsJumpPredict = function(data, today, memory, horizon, params, ...) { first_day = max(1, today-memory) - filter = params$indices >= first_day + filter = (params$indices >= first_day) indices = params$indices[filter] weights = params$weights[filter]