powered by
Also checks that 'origin' and 'destination' columns are present.
add_flow_length(x)
sf object with an additional length_m column (od length in meters)
sf object of flows (LINESTRING, projected CRS)
flows <- sf::st_transform(flows_leeds, 3857) flows <- add_flow_length(flows)
Run the code above in your browser using DataLab