This function will bin a Spectra object by averaging every
bin.ratio frequency values, and summing the corresponding intensity
values. The net effect is a smoothed and smaller data set. If there are
gaps in the frequency axis, each data chunk is processed separately. Note:
some folks refer to binning as bucketing.
If the frequency range is not divisible by bin.ratio to give a whole number,
data points are removed from the beginning of the frequency data until it
is, and the number of data points removed is reported at the console. If
there are gaps in the data where frequencies have been removed, each
continuous piece is sent out and binned separately (by
binSpectra).