allocate_consumption: Allocate Tiered Water Consumption

Description Usage Arguments Value Author(s)

View source: R/allocate_consumption.R

Description

Distributes a customers total water consumption over various tiers.

Usage

1
allocate_consumption(df, suffix = NULL, use.prime = FALSE)

Arguments

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.

Value

This function returns a dataframe of numeric columns for tiered usage

Author(s)

Bjorn Kallerud


bjornkallerud/waterr documentation built on Aug. 9, 2021, 10:55 a.m.