make_passenger_od {ssrn} | R Documentation |
Summaries a passenger volume
Description
Summaries a passenger volume
Usage
make_passenger_od(
passenger,
stations,
depart,
arrive,
location,
value,
.all = FALSE
)
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 |
.all |
Make a join that contains rows of two datasets. The default value is FALSE. |
Examples
jreast_jt_od %>%
make_passenger_od(jreast_jt,
depart = departure_st_code,
arrive_st_code,
location = st_code,
value = volume) %>%
dplyr::left_join(jreast_jt %>%
dplyr::select(arrive_st_code = st_code,
next_st_name = st_name),
by = "arrive_st_code")
[Package ssrn version 0.1.0 Index]