edit.nb {spdep} | R Documentation

## Interactive editing of neighbours lists

### Description

The function provides simple interactive editing of neighbours lists to allow unneeded links to be deleted, and missing links to be inserted. It uses `identify` to pick the endpoints of the link to be deleted or added, and asks for confirmation before committing. If the result is not assigned to a new object, the editing will be lost - as in `edit`.

### Usage

    edit.nb(name, coords, polys=NULL, ...)

### Arguments

`name` | an object of class `nb`
`coords` | matrix of region point coordinates
`polys` | if polygon boundaries supplied, will be used as background
`...` | further arguments passed to or from other methods

### Value

The function returns an object of class `nb` with the edited list of integer vectors containing neighbour region number ids, with added attributes tallying the added and deleted links.

### Author(s)

Roger Bivand Roger.Bivand@nhh.no

### See Also

`summary.nb`, `plot.nb`

[Package spdep version 0.3-25 Index]