| sum_emissions_by | R Documentation |
All of the variables in input_data whose names end in ems_qty will be summed. ems_unit will be preserved. Ignores NAs.
sum_annual_emissions_by() is a specialized variant that always groups by year.
sum_emissions_by(
input_data,
...,
digits = Inf,
signif = Inf,
verbose = getOption("verbose")
)
sum_annual_emissions_by(...)
input_data |
(tabular) |
... |
variables to group by |
digits |
(integer) passed to |
signif |
(integer) passed to |
verbose |
(logical) |
annual_emissions_by(...) is equivalent to sum_annual_emissions_by(), but the latter is now preferred.
Other sum_by:
sum_quantities_by(),
sum_throughputs_by()
df <- tibble(year = 1990:1993, foo = rep(c("bar", "baz"), 2), ems_qty = 1:4, ems_unit = "ton/yr")
df %>% sum_annual_emissions_by(foo, verbose = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.