# 1) Basic: primary material production + landfill; waste tonnage = use
plastic_emissions(
use = c(average_plastics = 100, hdpe = 50, pet = 25), # tonnes
waste_disposal = "Landfill",
waste = TRUE,
units = "kg"
)
# 2) Choose 2024 factors and report in tonnes; no waste applied
plastic_emissions(
use = c(average_plastic_film = 10, average_plastic_rigid = 5, pp = 2),
waste_disposal = "Closed-loop",
waste = FALSE,
value_col = "value_2024",
units = "tonnes"
)
# 3) Strict behaviour: error if a required waste route is unavailable
if (FALSE) {
plastic_emissions(
use = c(ps = 1),
waste_disposal = "Combustion",
waste = TRUE,
strict = TRUE
)}
# Tolerant: treat missing waste factors as 0
plastic_emissions(
use = c(ps = 1),
waste_disposal = "Combustion",
waste = TRUE,
strict = FALSE
)
Run the code above in your browser using DataLab