EmissionsList: Construction function for class "EmissionsList"

Description Usage Arguments Value Examples

View source: R/EmissionsList.R

Description

EmissionsList returns a tranformed object with class "EmissionsList".

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
EmissionsList(x, ...)

## S3 method for class 'EmissionsList'
print(x, ...)

## S3 method for class 'EmissionsList'
summary(object, ...)

## S3 method for class 'EmissionsList'
plot(x, ...)

Arguments

x

object with class "EmissionList"

...

ignored

object

object with class "EmissionList"

Value

Objects of class "EmissionsList" and numeric elements as "units"

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
## Not run: 
data(net)
data(pc_profile)
data(fe2015)
data(fkm)
PC_G <- c(33491,22340,24818,31808,46458,28574,24856,28972,37818,49050,87923,
          133833,138441,142682,171029,151048,115228,98664,126444,101027,
          84771,55864,36306,21079,20138,17439, 7854,2215,656,1262,476,512,
          1181, 4991, 3711, 5653, 7039, 5839, 4257,3824, 3068)
veh <- data.frame(PC_G = PC_G)
pc1 <- my_age(x = net$ldv, y = PC_G, name = "PC")
pcw <- temp_fact(net$ldv+net$hdv, pc_profile)
speed <- netspeed(pcw, net$ps, net$ffs, net$capacity, net$lkm, alpha = 1,
isList = T)
pckm <- fkm[[1]](1:24); pckma <- cumsum(pckm)
cod1 <- emis_det(po = "CO", cc = 1000, eu = "III", km = pckma[1:11])
cod2 <- emis_det(po = "CO", cc = 1000, eu = "I", km = pckma[12:24])
#vehicles newer than pre-euro
co1 <- fe2015[fe2015$Pollutant=="CO", ] #24 obs!!!
cod <- c(co1$PC_G[1:24]*c(cod1,cod2),co1$PC_G[25:nrow(co1)])
lef <- ef_ldv_scaled(co1, cod, v = "PC", cc = "<=1400",
                     f = "G",p = "CO", eu=co1$Euro_LDV)
E_CO <- emis(veh = pc1,lkm = net$lkm, ef = lef, speed = speed, agemax = 41,
             profile = pc_profile, hour = 24, day = 7, array = F)
class(E_CO)

## End(Not run)

ibarraespinosa/vein documentation built on July 22, 2018, 2:44 a.m.