rolling_sum: Calculates rolling sum of a vector across N points

View source: R/navr-helpers.R

rolling_sumR Documentation

Calculates rolling sum of a vector across N points

Description

Calculates rolling sum of a vector across N points

Usage

rolling_sum(vec, n_points)

Arguments

vec

numeric vector across which we calculate

n_points

Value

rolled vector sum or NULL if the n_points is larger than length of the vector


hejtmy/navr documentation built on July 19, 2024, 1:01 a.m.