Function that computes a maximum value for each bin
binMax(x, n)
x
NumericVector
n
intiger - number of bins