Description Usage Arguments Examples
View source: R/origin_destination.R
Summaries a passenger volume
1 2 3 4 5 6 7 8 9 | make_passenger_od(
passenger,
stations,
depart,
arrive,
location,
value,
.all = FALSE
)
|
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. |
1 2 3 4 5 6 7 8 9 10 | 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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.