[adegenet-forum] chooseCN

Penner, Johannes Johannes.Penner at mfn-berlin.de
Fri May 8 19:33:05 CEST 2009


Dear adegenet users,

I am trying to apply the Monmonier algorithm. Using

network <- chooseCN(mycoordinates, edit.nb=T)

I am able to edit depict and edit a network. However, when I later try
to apply the algorithm:

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

I consistently get the error: "cn ist not a nb object". It seems the
problem is that no nb object is created:
- The command "class(cn)" returns an error that "object 'cn" was not
found. 
- The command "network$cn" returns the answer "NULL".

Despite trying all day, including reinstalling R and the packages, I was
not able to find a solution. I also tried all variations suggested in
the tutorial, manual and help files. Any help and suggestions are highly
appreciated!

Thank you very much in advance!

Best wishes
Johannes




More information about the adegenet-forum mailing list