Learn R Programming

flowcluster (version 0.2.1)

add_flow_length: Add Length Column to Flow Data

Description

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

Usage

add_flow_length(x)

Value

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

Arguments

x

sf object of flows (LINESTRING, projected CRS)

Examples

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

Run the code above in your browser using DataLab