Description Usage Arguments Value Author(s)
Create Neighborhood Matrix from Adjacency List
1 | Neighmat(adj, num, n)
|
adj |
adjacency list, as created by poly2nb fron spdep package |
num |
the number of adjacent neighbors for each list item above |
n |
total number of list items |
a matrix, with 1's indicating neighbors, and 0 otherwise, in the same order as adj.
Jay Ver Hoef
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.