temp_fact: Expansion of hourly traffic data

Description Usage Arguments Value Examples

View source: R/temp_fact.R

Description

temp_fact is a matrix multiplication between traffic and hourly expansion data-frames to obtain a data-frame of traffic at each link to every hour

Usage

1
temp_fact(q, pro, net)

Arguments

q

Numeric; traffic data per each link

pro

Numeric; expansion factors data-frames

net

SpatialLinesDataFrame or Spatial Feature of "LINESTRING"

Value

data-frames of expanded traffic or sf.

Examples

1
2
3
4
5
6
7
8
9
{
# Do not run
data(net)
data(pc_profile)
pc_week <- temp_fact(net$ldv+net$hdv, pc_profile)
plot(pc_week)
pc_weeksf <- temp_fact(net$ldv+net$hdv, pc_profile, net = net)
plot(pc_weeksf)
}

ibarraespinosa/vein documentation built on Sept. 10, 2018, 1:53 a.m.