extract_logsums: Extract destination choice logsums

Description Usage Arguments Value

View source: R/logsums.R

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


tlumip/swimr documentation built on Dec. 14, 2020, 3:16 a.m.