points2odf: Convert a series of points into a dataframe of origins and...

Description Usage Arguments Examples

View source: R/od-funs.R

Description

Takes a series of geographical points and converts them into a data.frame representing the potential flows, or 'spatial interaction', between every combination of points.

Usage

1

Arguments

p

A spatial points object

Examples

1
2
3
4
5
data(cents)
df <- points2odf(cents)
cents_centroids <- rgeos::gCentroid(cents, byid = TRUE)
df2 <- points2odf(cents_centroids)
df3 <- points2odf(cents_sf)

stplanr documentation built on June 3, 2018, 1:04 a.m.