`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

vkm( veh, lkm, profile, hour = nrow(profile), day = ncol(profile), array = TRUE, as_df = TRUE )

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) |

as_df | Logical; when TRUE transform returning array in data.frame (streets x hour*days) |

emission estimation of vkm