Removes the baseline on an nmr_dataset_1D object, using baseline::baseline.als.
Arguments
- nmr_dataset
An nmr_dataset_1D.
- lambda
2nd derivative constraint
- p
Weighting of positive residuals
- maxit
Maximum number of iterations
Value
The same nmr_dataset_1D object after baseline removal.
See also
Other baseline removal functions:
nmr_baseline_estimation()
Examples
dataset_1D <- nmr_dataset_load(system.file("extdata", "nmr_dataset.rds", package = "AlpsNMR"))
dataset_no_base_line <- nmr_baseline_removal(dataset_1D, lambda = 6, p = 0.01)