Internal function. Get limits from a user specified formula
(used in ChemoSpec2D::removeFreq()
and ChemoSpec2D::removePeaks2D()
).
The user may not know or think about whether F2 or F1 is ascending or descending
so we will try to get it right no matter how the user gives
the formula; e.g. 6 ~ 3 ought to be handled as 3 ~ 6.
.getLimits(spectra, dim, form)
An object of S3 class ChemoSpec2D::Spectra2D()
.
An object of S3 class ChemoSpec2D::Spectra2D()
.
The dimension for which the limits are desired.
A formula specification.
Bryan A. Hanson (DePauw University).