[R-sig-Geo] Accessing the ids of neighbours in spdep

Kenny Bell kmb56 at berkeley.edu
Mon Sep 29 00:09:40 CEST 2014


Hi,

I am trying to get an actual list of neighbour ids out of an nb object. For
example, I have

library(spdep)
example(columbus)
xx <- poly2nb(columbus)

What would be my command to get the list of neighbours as a list of
character vectors?

Thanks so much for any help,
Kenny

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list