Creates a matrix of distances between all station pairs.
Usage
station_distance_matrix(station_info = NULL)
Arguments
- station_info
Data frame from get_station_info() or NULL to use default
Value
Named matrix of distances in km
Examples
station_distance_matrix()
#> M2 M3 M4 M5 M6
#> M2 0.0 39.0 233.9 52.3 454.3
#> M3 39.0 0.0 271.8 64.7 420.7
#> M4 233.9 271.8 0.0 227.5 644.5
#> M5 52.3 64.7 227.5 0.0 430.6
#> M6 454.3 420.7 644.5 430.6 0.0