moving_avg_filter: Moving average filter

Description Usage Arguments Value References Examples

View source: R/moving_avg_filter.R

Description

Filters data using moving averages of diferent window sizes.

Usage

1

Arguments

x

A numeric vector with the position values of the data to filter (a sequence)

y

A numeric vector with the data to filter

k

A numeric vector with the widths of the windows to use for the filter (must be an odd number)

Value

A list with two data frames: one with the filtered results plus the original data, and one with the residuals

References

Swan, A. R. H. & Sandilands, M. (1995). Introduction to Geological Data Analysis. Blackwell Science.

Examples

1
2
3
4

maxgav13/GMisc documentation built on Nov. 6, 2018, 2:50 a.m.