rolling_value: Rolling function of a numeric values

View source: R/rolling_value.R

rolling_valueR Documentation

Rolling function of a numeric values

Description

Rolling function of a numeric values

Usage

rolling_value(val, by = 12, func = sum)

Arguments

val

Ordered vector

by

Increment

func

Function

Value

Vector of he same class as val

Examples


rolling_value(1:20, by = 5)
rolling_value(1:20, by = 10)
rolling_value(1:20, by = 10, func = mean)


OlisaNsonwu/jurithy documentation built on Nov. 28, 2023, 3:39 a.m.