add_flow_length: Add Length Column to Flow Data

View source: R/distance_matrix_utils.R

add_flow_lengthR Documentation

Add Length Column to Flow Data

Description

Also checks that 'origin' and 'destination' columns are present.

Usage

add_flow_length(x)

Arguments

x

sf object of flows (LINESTRING, projected CRS)

Value

sf object with an additional length_m column (od length in meters)

Examples

flows <- sf::st_transform(flows_leeds, 3857)
flows <- add_flow_length(flows)

flowcluster documentation built on Aug. 21, 2025, 5:54 p.m.