R-package(baseline) application to sample dataset
问题 I am trying to use the R baseline-package on a sample dataset that I have for, to test and evaluate the current baseline algorithm that I have. I wanted to apply the fillpeaks algorithm as a trend line to compare. bc.fillPeaks <- baseline(milk$spectra[1, drop=FALSE], lambda=6, hwi=50, it=10, int=2000, method="fillPeaks") plot(bc.fillPeaks) But my problem is that the sample data that I have does not fit the matrix structure which is used in the example. When I look at the data.frame used for