Perform a mathematical operation on a spectral region.
spec_op(
mrs_data,
xlim = NULL,
operator = "sum",
freq_scale = "ppm",
mode = "re"
)
an array of integral values.
MRS data.
spectral range to be integrated (defaults to full range).
can be "sum" (default), "mean", "l2", "max", "max_cplx, "min" or "max-min".
units of xlim, can be : "ppm", "hz" or "points".
spectral mode, can be : "re", "im", "mod" or "cplx".