powered by
emis_emfac estimates emissions based on an emission factors database from EMFAC.You must download the emission factors from EMFAC website.
emis_emfac
emis_emfac( ef, veh, lkm, speed, vehname, pol = "CO_RUNEX", modelyear = 2021:1982, noyear = 2022, hours = paste0("S", 1:24), vkm = TRUE, verbose = TRUE )
data.table with emission estimation in long format
Character path to EMFAC ef (g/miles)
Vehicles data.frame
Distance per street-link in miles
Speed data.frame in niles/hour
numeric vector for heavy good vehicles or trucks
character, "CO_RUNEX"
numeric vector, 2021:1982
newest numeric year to take out from ef
Character, name of hours in speed, paste0("S", 1:24) data-frame profile for passenger cars, 24 hours only.
logical, to return vkm
logical, to show more information
if (FALSE) { # do not run }
Run the code above in your browser using DataLab