CensusMapper's binned_quantile() (and quantile()): the
p-quantile, e.g. the median income, from counts per bracket and the brackets'
lower cutoffs, interpolating linearly within the bracket. The lowest bracket
starts at 0 and the top bracket ends at twice its lower cutoff.
Arguments
- counts
Counts per bracket: a matrix with one row per region and one column per bracket, e.g.
cbind(v1, v2, v3)insidedplyr::mutate().- lower_cutoffs
The brackets' lower cutoffs, a vector that is the same for every region, or a matrix like
counts.- p
The quantile, between 0 and 1, the same for every region or one per region.
