extract_logsums: Extract destination choice logsums

Description Usage Arguments Value

Description

The logsums are provided at production-side beta zones, by purpose and market segment. This function aggregates market segments by averaging and purposes by summation (sum of all purpose logsums faced by the average user).

Usage

1
extract_logsums(db, scope = NULL, purposes = NULL, agg_var = "AZONE")

Arguments

db

The scenario sqlite database.

scope

a dplyr::filtering criteria to limit the scope of the dataframe

purposes

a vector of trip purposes to include in the average logsum.

agg_var

The region variable on which to aggregate logsums.

Value

a data_frame


pbsag/swimr documentation built on May 24, 2019, 10:39 p.m.