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