Apply line-broadening to an mrs_data object to achieve a specified linewidth.
set_lw(mrs_data, lw, xlim = c(4, 0.5), lg = 1, mask_narrow = TRUE)
line-broadened data.
data in.
target linewidth in units of ppm.
region to search for peaks to obtain a linewidth estimate.
Lorentz-Gauss lineshape parameter.
masks spectra where the requested linewidth is too narrow, if set FALSE the spectra are not changed.