View source: R/distance_matrix_utils.R
add_flow_length | R Documentation |
Also checks that 'origin' and 'destination' columns are present.
add_flow_length(x)
x |
sf object of flows (LINESTRING, projected CRS) |
sf object with an additional length_m column (od length in meters)
flows <- sf::st_transform(flows_leeds, 3857)
flows <- add_flow_length(flows)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.