make_passenger_matrix {ssrn}R Documentation

Convert passenger and station data to origin-destination matrix

Description

Convert passenger and station data to origin-destination matrix

Usage

make_passenger_matrix(passenger, stations, depart, arrive, location, value)

Arguments

passenger

passenger data

stations

data.frame which set of stopping points recorded in order of stopping.

depart

Column name of a stop.

arrive

Give the name of the column indicating the next stop at the target stop.

location

Name of the variable to use for the join, indicating its location.

value

origin-destination value name

Examples

jreast_jt_od %>%
  make_passenger_matrix(jreast_jt,
                        departure_st_code,
                        arrive_st_code,
                        st_code,
                        volume)

[Package ssrn version 0.1.0 Index]