Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

repairNetwork

Repair Internal Data in a Linear Network


Description

Detect and repair inconsistencies or duplication in the internal data of a network object.

Usage

repairNetwork(X)

Arguments

X

A linear network (object of class "linnet") or a point pattern on a linear network (object of class "lpp").

Details

This function detects and repairs inconsistencies in the internal data of X. Currently it does the following:

  • checks that different ways of calculating the number of edges give the same answer

  • removes any duplicated edges of the network

  • ensures that each edge is recorded as a pair of vertex indices (from, to) with from < to.

Value

An object of the same kind as X.

Author(s)

See Also


spatstat.linnet

Linear Networks Functionality of the 'spatstat' Family

v2.1-1
GPL (>= 2)
Authors
Adrian Baddeley [aut, cre], Rolf Turner [aut], Ege Rubak [aut], Ottmar Cronie [ctb], Tilman Davies [ctb], Greg McSwiggan [ctb], Suman Rakshit [ctb]
Initial release
2021-03-28

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.