od: Create origin-destination flows (odf) object

Description Usage Arguments

View source: R/od.R

Description

Create origin-destination flows (odf) object, which is a list consisting of a data.frame with the od data, an sf object with spatial points and optionally, an sf object with spatial (poly)lines of the routes

Usage

1
od(E, U = NULL, col_orig = 1, col_dest = 2, col_id = 1)

Arguments

E

'data.frame' or 'sf' object of edges. If it is an 'sf', it should contain (MULTI)LINESTRING geometries

U

'sf' object of nodes. It should contain 'POINT' geometry.

col_orig

column of E (integer or name) that specifies the origin

col_dest

column of E (integer or name) that specifies the destination

col_id

column of U (integer or name) that specifies the id


mtennekes/odf documentation built on April 4, 2021, 1:10 a.m.