sum_throughputs: Sum Throughputs In Tabular Data

sum_throughputs_byR Documentation

Sum Throughputs In Tabular Data

Description

All of the variables in input_data whose names end in tput_qty will be summed. tput_unit will be preserved. Ignores NAs.

sum_annual_throughputs_by() is a specialized variant that always groups by year.

Usage

sum_throughputs_by(
  input_data,
  ...,
  digits = Inf,
  signif = Inf,
  verbose = getOption("verbose")
)

sum_annual_throughputs_by(...)

Arguments

input_data

(tabular)

...

variables to group by

digits

(integer) passed to total()

signif

(integer) passed to total()

verbose

(logical)

Note

annual_throughputs_by(...) is equivalent to sum_annual_throughputs_by(), but the latter is now preferred.

See Also

Other sum_by: sum_emissions_by(), sum_quantities_by()

Examples

df <- tibble(year = 1990:1993, foo = rep(c("bar", "baz"), 2), tput_qty = 1:4, tput_unit = "kgal")
df %>% sum_annual_throughputs_by(foo, verbose = TRUE)


BAAQMD/qtytools documentation built on June 30, 2022, 6:07 p.m.