vkm: Estimation of VKM

Description Usage Arguments Value Examples

View source: R/vkm.R

Description

vkm consists in the product of the number of vehicles and the distance driven by these vehicles in km. This function reads hourly vehiles and then extrapolates the vehicles

Usage

1
vkm(veh, lkm, profile, hour = 24, day = 7, array = T)

Arguments

veh

Numeric vector with number of vehicles per street

lkm

Length of each link (km)

profile

Numerical or dataframe with nrows equal to 24 and ncol 7 day of the week

hour

Number of considered hours in estimation

day

Number of considered days in estimation

array

When FALSE produces a dataframe of the estimation. When TRUE expects a profile as a dataframe producing an array with dimensions (streets x hours x days)

Value

emission estimation of vkm

Examples

1
2
3
4
5
6
7
## Not run: 
# Do not run
pc <- lkm <- abs(rnorm(10,1,1))*100
pro <- matrix(abs(rnorm(24*7,0.5,1)), ncol=7, nrow=24)
vkms  <- vkm(veh = pc, lkm = lkm, profile = pro)

## End(Not run)

ibarraespinosa/vein documentation built on Feb. 5, 2018, 11:34 p.m.