make_passenger_matrix: Convert passenger and station data to origin-destination...

Description Usage Arguments Examples

View source: R/matrix.R

Description

Convert passenger and station data to origin-destination matrix

Usage

1
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

1
2
3
4
5
6
jreast_jt_od %>%
  make_passenger_matrix(jreast_jt,
                        departure_st_code,
                        arrive_st_code,
                        st_code,
                        volume)

ssrn documentation built on July 1, 2020, 10:22 p.m.