Perform zeroth-order phase correction based on the minimisation of the squared difference between the real and magnitude components of the spectrum.
auto_phase(mrs_data, xlim = NULL, ret_phase = FALSE)
an object of class mrs_data
.
frequency range (default units of PPM) to including in the phase.
return phase values (logical).
MRS data object and phase values (optional).