smooth.mean {gen5helper} | R Documentation |
Smooth a vector using moving average
Description
Smooth a vector using moving average
Usage
smooth.mean(vec, naverage)
Arguments
vec |
numeric vector |
naverage |
width of moving average |
Value
smoothed
Examples
smooth.mean(1:10, 2)
smooth.mean(1:10, 3)
smooth.mean(1:10, 5)
[Package gen5helper version 1.0.1 Index]