Learn R Programming

riverdist (version 0.17.0)

calculateconnections: Calculate the Connectivity Matrix for a River Network

Description

Calculates the connectivity matrix for a river network, during import and editing. Called internally.

Usage

calculateconnections(lines, tolerance)

Value

A matrix with topological information. See the $connections element of the rivernetwork-class.

Arguments

lines

A list of coordinate matrices, each corresponding to a line segment.

tolerance

The spatial tolerance for establishing connectivity.

Author

Matt Tyers

Examples

Run this code
Gulk_connections <- calculateconnections(lines=Gulk$lines, tolerance=Gulk$tolerance)

Run the code above in your browser using DataLab