[R-sig-Geo] Accessing the ids of neighbours in spdep
Frede Aakmann Tøgersen
frtog at vestas.com
Mon Sep 29 07:17:51 CEST 2014
Hi
I'm not really sure I understand you but perhaps something like this:
lapply(xx, paste, collapse = ", ")
Yours sincerely / Med venlig hilsen
Frede Aakmann Tøgersen
Specialist, M.Sc., Ph.D.
Plant Performance & Modeling
Technology & Service Solutions
T +45 9730 5135
M +45 2547 6050
frtog at vestas.com
http://www.vestas.com
Company reg. name: Vestas Wind Systems A/S
This e-mail is subject to our e-mail disclaimer statement.
Please refer to www.vestas.com/legal/notice
If you have received this e-mail in error please contact the sender.
> -----Original Message-----
> From: r-sig-geo-bounces at r-project.org [mailto:r-sig-geo-bounces at r-
> project.org] On Behalf Of Kenny Bell
> Sent: 29. september 2014 00:10
> To: r-sig-geo at r-project.org
> Subject: [R-sig-Geo] Accessing the ids of neighbours in spdep
>
> 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]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
More information about the R-sig-Geo
mailing list