Learn R Programming

vein (version 1.1.3)

emis_chem2: Aggregate emissions by lumped groups in chemical mechanism

Description

emis_chem2 aggregates VOC emissions by chemical mechanism and convert grams to mol.

Usage

emis_chem2(df, mech, nx, na.rm = FALSE)

Value

data.frame with lumped groups by chemical mechanism.

Arguments

df

data.frame with emissions including columns "id" and "pol".

mech

Character, "CB4", "CB05", "S99", "S7","CS7", "S7T", "S11", "S11D","S16C","S18B","RADM2", "RACM2","MOZT1", "CBMZ", "CB05opt2"

nx

Character, colnames for emissions data, for instance "V1", "V2"...

na.rm

Logical, to remove lines with NA from group

References

Carter, W. P. (2015). Development of a database for chemical mechanism assignments for volatile organic emissions. Journal of the Air & Waste Management Association, 65(10), 1171-1184.

See Also

speciate

Examples

Run this code
{
id <-1:2
df <- data.frame(V1 = 1:2, V2 = 1:2)
dx <- speciate(x = df,
               spec = "nmhc",
               fuel = "E25",
               veh = "LDV",
               eu = "Exhaust")
dx$id <- rep(id, length(unique(dx$pol)))
names(dx)
vocE25EX <- emis_chem2(df = dx,
                       mech = "CB05",
                       nx = c("V1", "V2"))
}

Run the code above in your browser using DataLab