If adj.buckets is equal to NULL, then this
argument either specifies a vector giving the breakpoints between cells, or a
single number giving the total number of cells in the new
histogram. The vector of new buckets must have the same range as
the original break list. If a single number is provided it must be
less than length(x$breaks).
FUN
The user defined function that should be run to merge the
counts of adjacent buckets in the histogram.
Details
Many data analysis pipelines write out histogram protocol buffers with
thousands of buckets so as to be applicable in a wide range of
contexts. This function provides a way to transform the histogram into
one with fewer buckets.