View source: R/vehicle_emissions.R
vehicle_emissions | R Documentation |
A function that calculates CO2e emissions on a journey on land.
vehicle_emissions(
distance,
units = c("miles", "km"),
num = 1,
vehicle = c("Cars", "Motorbike"),
fuel = c("Petrol", "Diesel", "Unknown", "Battery Electric Vehicle",
"Plug-in Hybrid Electric Vehicle"),
car_type = c("Average car", "Small car", "Medium car", "Large car", "Mini",
"Supermini", "Lower medium", "Upper medium", "Executive", "Luxury", "Sports",
"Dual purpose 4X4", "MPV"),
bike_type = c("Average", "Small", "Medium", "Large"),
TD = TRUE,
include_WTT = TRUE,
include_electricity = TRUE,
owned_by_org = TRUE
)
distance |
Distance in km or miles of the journey made (this can be calculated with other tools, such as google maps.). |
units |
Units for the distance travelled. Options are |
num |
Number of vehicles used. |
vehicle |
Vehicle used for the journey. Options are |
fuel |
Fuel type used for the journey. For car, |
car_type |
Size/type of vehicle for car.
Options are |
bike_type |
Size of vehicle for motorbike.
Options are |
TD |
logical.Whether to account for transmission and distribution (TD) for electric vehicles (only |
include_WTT |
logical. Well-to-tank (include_WTT) - whether to account for emissions associated with extraction, refining and transportation of the fuels (for non-electric vehicles). |
include_electricity |
logical. Whether to account for ... for electric vehicles (car and van). |
owned_by_org |
logical. Whether the vehicle used is owned by the organisation or not (only for |
Tonnes of CO2e emissions per mile travelled.
# Emissions for a 100 mile car journey
vehicle_emissions(distance = 100)
# Emissions for a 100 mile motorbike journey where the motorbike is 500+cc
vehicle_emissions(distance = 100, vehicle = "Motorbike", bike_type = "Large")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.