sample_faf4_daily_trucks: Sample daily FAF trucks from annual truckload estimates

Description Usage Arguments Details Examples

Description

Sample daily FAF trucks from annual truckload estimates

Usage

1
2
sample_faf4_daily_trucks(annual_truckloads, target.week = 24,
  target.day = 4)

Arguments

annual_truckloads

Data frame containing FAF flow records with estimates of annaul truckload equivalents appended.

target.week

Integer value specifying the week of the year the simulation should sample for (defaults to 24, typically occurs in April)

target.day

Integer value specifying the day of the week trips should be sampled for (defaults to 4, which corresponds to Wednesday in the target.week)

Details

This function creates discrete truck trip records from annual truckloads estimated eaelier, randomly assigns a travel week and day, and then saves those records that correspond to the user-specified simulation week and day. The user can specify observed flow distributions by week and day if desired, or sample from uniform distribution. The resulting trip records are for individual trucks, and include the FAF attributes associated with them. Note that the value and tonnage estimates have been split evenly across each of the trucks associatd with a given FAF flow record.

Examples

1
daily_trucks <- sample_faf4_daily_trucks(faf_flows)

rickdonnelly/pcvmodr documentation built on May 14, 2019, 8:17 a.m.