Feed in a vector of breaks x, and min and max values of a range that falls within x. Output the proportion of each slice that is covered by the range. Useful for calculating things like prevalence in a given age range.
1 | breakCoverage(breaks, range_min, range_max)
|
breaks |
vector of breaks |
range_min |
minimum value of range of interest |
range_max |
maximum value of range of interest |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.