Description Usage Arguments Details Value
View source: R/glinet_construct.R
Creates a discretized network from SpatialLines lines as a list of 2: vlist, elist
1 |
lines |
The input SpatialLines or SpatialLinesDataFrame object |
dx |
The edge-segment length (double) |
The glinet object consists of two lists: list of vertices (vlist) and list of edges (elist). Vertices and edges in these lists have the following structure:
Vertex: list: - $coords: numeric vector of coordinates - $neibs: integer vector of neighbors (each neighbor coded by its index in vlist) - $w: vertex weight (numeric) - $hr: named vector of home range identifiers (0/1)
Edge: list: - $from: index of first vertex (integer) - $to: index of second vertex (integer), - $w: edge weight (numeric), - $oriented: indicates whether the edge is oriented (boolean) - $l: edge length (numeric)
The weights and orientation of edges are intended for more general use in the future and are not utilized in this version of the package.
A glinet object, which is a linear network represented as a list of two lists, vlist - list of vertices, and elist - list of edges.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.