Description Usage Arguments Examples
Convert passenger and station data to origin-destination matrix
1 | make_passenger_matrix(passenger, stations, depart, arrive, location, value)
|
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 |
1 2 3 4 5 6 | jreast_jt_od %>%
make_passenger_matrix(jreast_jt,
departure_st_code,
arrive_st_code,
st_code,
volume)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.