Learn R Programming

carbonr (version 0.2.1)

land_emissions: Calculate CO2e emissions from land-travel journeys

Description

A function that calculates CO2e emissions on a journey on land.

Usage

land_emissions(
  distance,
  units = c("miles", "km"),
  num = 1,
  vehicle = c("Cars", "Motorbike", "Taxis", "Bus", "National rail", "International rail",
    "Light rail and tram", "London Underground", "Coach"),
  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"),
  bus_type = c("Local bus (not London)", "Local London bus", "Average local bus"),
  taxi_type = c("Regular taxi", "Black cab"),
  TD = TRUE,
  include_WTT = TRUE,
  include_electricity = TRUE,
  owned_by_org = TRUE
)

Value

Tonnes of CO2e emissions per mile travelled.

Arguments

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 "km" or "miles".

num

Number of passengers if vehicle is one of coach, tram, or tube. Otherwise, number of vehicles used.

vehicle

Vehicle used for the journey. Options are "Cars", "Motorbike", "Taxis", "Bus", "National rail", "International rail, "Coach", "Light rail and tram", "London Underground". Note: car, taxi, motorbike is per vehicle.

fuel

Fuel type used for the journey. For car, "Petrol", "Diesel", "Unknown", "Battery Electric Vehicle", "Plug-in Hybrid Electric Vehicle" are options. ##' "hybrid electric" and "battery electric" account for electricity kWh emissions.

car_type

Size/type of vehicle for car. Options are c("Average car", "Small car", "Medium car", "Large car", "Mini", "Supermini", "Lower medium", "Upper medium", "Executive", "Luxury", "Sports", "Dual purpose 4X4", "MPV"),. Small denotes up to a 1.4L engine, unless diesel which is up to 1.7L engine. Medium denotes 1.4-2.0L for petrol cars, 1.7-2.0L for diesel cars. Large denotes 2.0L+ engine.

bike_type

Size of vehicle for motorbike. Options are "Small", "Medium", "Large", or "Average". Sizes denote upto 125cc, 125cc-500cc, 500cc+ respectively.

bus_type

Options are "local_nL", "local_L", "local", or "average". These denote whether the bus is local but outside of London, local in London, local, or average.

taxi_type

Whether a taxi is regular or black cab. Options are "Regular taxi", "Black cab".

TD

logical.Whether to account for transmission and distribution (TD) for electric vehicles (only car and van)

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 car, motorbike).

Examples

Run this code
# Emissions for a 100 mile car journey
land_emissions(distance = 100)

# Emissions for a 100 mile motorbike journey where the motorbike is 500+cc
land_emissions(distance = 100, vehicle = "Motorbike", bike_type = "Large")

Run the code above in your browser using DataLab