filter_by_length: Filter Flows by Length

View source: R/distance_matrix_utils.R

filter_by_lengthR Documentation

Filter Flows by Length

Description

Filter Flows by Length

Usage

filter_by_length(x, length_min = 0, length_max = Inf)

Arguments

x

sf object with length_m

length_min

minimum length (default 0)

length_max

maximum length (default Inf)

Value

filtered sf object. Flows with length_m outside the specified range are removed.

Examples

flows <- sf::st_transform(flows_leeds, 3857)
flows <- add_flow_length(flows)
flows <- filter_by_length(flows, length_min = 5000, length_max = 12000)

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