sliding.avg: Calculate a sliding average

Description Usage Arguments Value

View source: R/gwscaR_popgen.R

Description

Calculate a sliding average

Usage

1
sliding.avg(win.start, dat, width)

Arguments

win.start

The beginning of where you want to start your sliding window

dat

A vector (or row of a data frame) containing the values you would like to calculate your sliding window over.

width

The width of the sliding window

Value

The average value of dat within that sliding window.


spflanagan/gwscaR documentation built on Nov. 14, 2019, 9:16 p.m.