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)

privefl/bigutilsr documentation built on Jan. 27, 2024, 5:33 a.m.