Learn R Programming

stplanr (version 0.5.0)

SpatialLinesNetwork-class: An S4 class representing a (typically) transport network

Description

This class uses a combination of a SpatialLinesDataFrame and an igraph object to represent transport networks that can be used for routing and other network analyses.

Arguments

Slots

sl

A SpatialLinesDataFrame with the geometry and other attributes for each link the in network.

g

The graph network corresponding to sl.

nb

A list containing vectors of the nodes connected to each node in the network.

weightfield

A character vector containing the variable (column) name from the SpatialLinesDataFrame to be used for weighting the network.