Learn R Programming

vein (version 0.9.1)

ef_emfac: EMFAC2017 emission factors for Statewide California, Calendar Year 2020

Description

ef_emfac returns emission factors reflecting California, US, conditions. If the user enter speeds more emission factors are returned. See details.

Usage

ef_emfac(
  veh = "LDT1",
  fuel = "Gasoline",
  mph,
  pol = "CO_RUNEX",
  season = "winter",
  full = FALSE
)

Arguments

veh

Character; "one of the 40 vehicle categories shown below.

fuel

Character; "Diesel", "Gasoline", "Electricity" or "Natural Gas"

mph

Numeric; Speed in miles per hour (optional).

pol

Character;

  • if the user enter mph"NOx_RUNEX", "PM2.5_RUNEX", "PM10_RUNEX", "CO2_RUNEX", "CH4_RUNEX", "N2O_RUNEX", "ROG_RUNEX", "TOG_RUNEX", "CO_RUNEX", "SOx_RUNEX"

  • if the user do not enter mph "NOx_RUNEX", "NOx_IDLEX", "NOx_STREX", "PM2.5_RUNEX", "PM2.5_IDLEX", "PM2.5_STREX", "PM2.5_PMTW" , "PM2.5_PMBW", "PM10_RUNEX", "PM10_IDLEX", "PM10_STREX", "PM10_PMTW", "PM10_PMBW", "CO2_RUNEX", "CO2_IDLEX", "CO2_STREX", "CH4_RUNEX", "CH4_IDLEX", "CH4_STREX", "N2O_RUNEX", "N2O_IDLEX", "N2O_STREX", "ROG_RUNEX", "ROG_IDLEX", "ROG_STREX", "ROG_HOTSOAK", "ROG_RUNLOSS", "ROG_RESTLOSS", "ROG_DIURN", "TOG_RUNEX", "TOG_IDLEX", "TOG_STREX", "TOG_HOTSOAK", "TOG_RUNLOSS", "TOG_RESTLOSS", "TOG_DIURN", "CO_RUNEX", "CO_IDLEX", "CO_STREX", "SOx_RUNEX", "SOx_IDLEX", "SOx_STREX"

season

Character: "winter" or "summer".

full

Logical: To return the whole data.table or not.

Value

data.table with emission factors.

References

https://arb.ca.gov/emfac/emissions-inventory

Examples

Run this code
# NOT RUN {
#do not run
pols <- c("CO_RUNEX", "NOx_RUNEX")
dfef2 <- ef_emfac(full = TRUE)
colplot(df = dfef2,
        x = dfef2$Model_Year,
        cols = pols,
        main = "EF from LDT1 with Gasoline on Winter",
        ylab = units(dfef2[[pols[1]]][1]))
# }

Run the code above in your browser using DataLab