matsgolay: Apply Savitzky-Golay smoothing or 1st/2nd derivative to the...

Description Usage Arguments Value See Also Examples

Description

The function matsgolay applys Savitzky-Golay smoothing, 1st derivative or 2nd derivative to an object of class matrix by using sgolayfilt in signal package.

Usage

1

Arguments

x

x m-by-n data of class data.frame or matrix to be filtered. m is the number of samples (observations) and n is the number of variables.

...

additional arguments passed to the sgolayfilt in 'signal' package.

Value

an fitted matrix

See Also

sgolayfilt

Examples

1
2
data(peach)
nir.1d <- matsgolay(peach$NIR, p = 2, n = 11, m = 1)

uwadaira/plsropt documentation built on May 3, 2019, 2:39 p.m.