powered by
Filter Flows by Length
filter_by_length(x, length_min = 0, length_max = Inf)
filtered sf object. Flows with length_m outside the specified range are removed.
sf object with length_m
minimum length (default 0)
maximum length (default Inf)
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