Learn R Programming

ssrn (version 0.1.0)

make_adjacency_matrix: Convert station data to adjacency matrix

Description

Convert station data to adjacency matrix

Usage

make_adjacency_matrix(stations, depart, arrive)

Arguments

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.

Examples

Run this code
# NOT RUN {
make_adjacency_matrix(jreast_jt, st_code, next_st_code)
# }

Run the code above in your browser using DataLab