Description Usage Arguments Value Author(s)
View source: R/allocate_consumption.R
Distributes a customers total water consumption over various tiers.
1 | allocate_consumption(df, suffix = NULL, use.prime = FALSE)
|
df |
dataframe that contains customer usage and tier widths. usage column can be titled either "use" or "usage". width columns titles must take the form of "tX_width". |
suffix |
width column suffix. we often define widths in terms of current/proposed rates (ie tX_width_current), so defining the suffix enables use of this function for current and proposed widths. |
use.prime |
boolean - set to TRUE if you want to use 'use_prime' usage column instead of standard use column. |
This function returns a dataframe
of numeric columns for tiered usage
Bjorn Kallerud
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.