[R] cn is not a nb object

Penner, Johannes Johannes.Penner at mfn-berlin.de
Fri May 8 18:32:01 CEST 2009


Dear all,

I am trying to calculate barriers with the monmonier algorithm
(adegenet).

mon1 <- monmonier(mycoordinates, mydistancamatrix, network$cn, ...)

The network beforehand looked alright. However, I always get the error:
"cn is not a nb object". I am not really sure what this means, probably
that the network is not recognised properly. So far I was not able to
detect my fault, though I already installed the newest version of R and
updated all packages (which was suggested in help files I have found
during the search). Any help would be highly appreciated!

Thanks in advance!

Best regards
Johannes




More information about the R-help mailing list