View source: R/electrical_emissions.R
electrical_emissions | R Documentation |
Computes embodied GHG emissions for electrical items using uk_gov_data
rows with
Level 2 = "Electrical items". Material-use factors come from
Level 1 = "Material use", Column Text = material_production
(your table
currently provides Primary material production only). Waste factors come
from Level 1 = "Waste disposal", Column Text = waste_disposal
.
Factors are kg CO2e per tonne.
electrical_emissions(
use = stats::setNames(numeric(), character()),
waste = TRUE,
material_production = "Primary material production",
waste_disposal = c("Landfill", "Open-loop"),
units = c("kg", "tonnes"),
value_col = c("value", "value_2024"),
strict = TRUE
)
use |
Named numeric vector of quantities in tonnes.
Canonical names supported:
|
waste |
Logical. If |
material_production |
Either a single string for all items
(e.g., |
waste_disposal |
One of |
units |
Output units: |
value_col |
Which numeric column to use: |
strict |
If |
Numeric total emissions in requested units
.
# Primary production + landfill; waste = use
electrical_emissions(
use = c(fridges = 1, freezers = 0.5, large_electrical = 0.2),
waste_disposal = "Landfill",
waste = TRUE,
units = "kg"
)
# 2024 factors, no waste, report in tonnes
electrical_emissions(
use = c(it = 0.01, liion_batteries = 0.002),
value_col = "value_2024",
waste = FALSE,
units = "tonnes"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.