View source: R/preprocessing.R
| interpl | R Documentation | 
Resampling of signals by interpolation methods, including linear, spline, and cubic interpolation. The function uses interp1 of package signal available on the CRAN.
interpl(X, w, meth = "cubic", ...)
X | 
 X-data (  | 
w | 
 A vector of the values where to interpolate (typically within the range of   | 
meth | 
 The method of interpolation. See   | 
... | 
 Optional arguments to pass in function   | 
A matrix of the interpolated signals.
data(cassav)
X <- cassav$Xtest
headm(X)
w <- seq(500, 2400, length = 10)
zX <- interpl(X, w, meth = "spline")
headm(zX)
plotsp(zX)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.