Learn R Programming

care4cmodel (version 1.0.3)

fuel_to_co2: Convert Fuel Consumption into CO2 Emission

Description

Simple conversion assuming a factor of 2.61 kg CO2 / l diesel fuel

Usage

fuel_to_co2(fuel_cons_ltrs, fuel_type = c("diesel"))

Value

The emitted amount of CO2 in kg coming form burning fuel_cons_ltrs

Arguments

fuel_cons_ltrs

Fuel amount consumed by a harvester in liters.

fuel_type

Fuel type (character string), required to find the correct conversion factor. Currently, only "diesel" is accepted.

Examples

Run this code
  dbh  <- seq(20, 70, 10) # Vector of tree dbh in cm
  vol  <- dbh ^ 2 / 1000  # Simple Volume estimate (m³) with Denzin's formula

  fuel_cons_harvester_1(vol, dbh) |>
    fuel_to_co2()

Run the code above in your browser using DataLab