Learn R Programming

mdatools (version 0.9.1)

prep.savgol: Savytzky-Golay filter

Description

Applies Savytzky-Golay filter to the rows of data matrix

Usage

prep.savgol(data, width = 3, porder = 1, dorder = 0)

Arguments

data

a matrix with data values

width

width of the filter window

porder

order of polynomial used for smoothing

dorder

order of derivative to take (0 - no derivative)