Scale mrs_data to a spectral region.
scale_spec(
mrs_data,
xlim = NULL,
operator = "sum",
freq_scale = "ppm",
mode = "re",
mean_dyns = TRUE
)
MRS data.
spectral range to be integrated (defaults to full range).
can be "sum" (default), "mean", "l2", "max", "min" or "max-min".
units of xlim, can be : "ppm", "Hz" or "points".
spectral mode, can be : "re", "im", "mod" or "cplx".
mean the dynamic scans before applying the operator. The same scaling value will be applied to each individual dynamic.
normalised data.