Learn R Programming

flowcluster (version 0.2.1)

filter_by_length: Filter Flows by Length

Description

Filter Flows by Length

Usage

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

Value

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

Arguments

x

sf object with length_m

length_min

minimum length (default 0)

length_max

maximum length (default Inf)

Examples

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

Run the code above in your browser using DataLab