Count the number of elements of a given vector that fall within successive pairs of values within a second vector.
vector of numerical values.
Vector of values of x at the boundaries between bins, calculated using
A list with the following elements: the breaks (
xmids) between those breaks, and
the count (
x values between successive breaks.