points2flow: Convert a series of points into geographical flows

View source: R/od-funs.R

points2flowR Documentation

Convert a series of points into geographical flows

Description

Takes a series of geographical points and converts them into a spatial (linestring) object representing the potential flows, or 'spatial interaction', between every combination of points.

Usage

points2flow(p)

Arguments

p

A spatial (point) object

See Also

Other od: od2line(), od2odf(), od_aggregate_from(), od_aggregate_to(), od_coords2line(), od_coords(), od_id_order(), od_id, od_oneway(), od_to_odmatrix(), odmatrix_to_od(), points2odf()

Examples

flow_sf <- points2flow(cents_sf[1:4, ])
plot(flow_sf)

stplanr documentation built on Sept. 15, 2023, 9:07 a.m.