rollmean: Gaussian smoothing

View source: R/rollmean.R

rollmeanR Documentation

Gaussian smoothing

Description

Gaussian smoothing

Usage

rollmean(x, size)

Arguments

x

Numeric vector.

size

Radius of the smoothing (smaller than half of the length of x). If using size = 0, it returns x.

Value

Numeric vector of the same length as x, smoothed.

Examples

(x <- rnorm(10))
rollmean(x, 3)

bigutilsr documentation built on Aug. 8, 2025, 7:24 p.m.