[adegenet-forum] MSPA no listw lw

Cecile Berthouly-Salazar cberthouly at sun.ac.za
Thu Jan 27 10:11:40 CET 2011


Hi Thibaut,

I'm learning how to apply the MSPA methods from the supplemetary data 
from paper in Ecograph/y.
/If I do exactly what it written then I have this:
/> cn <- chooseCN(oribatid$xy,res="listw",ask=FALSE,type=1)$cn
 > class(cn)
[1] "NULL"
 > mspaEnv <- mspa(hsEnv.detr,cn,scannf=FALSE)
Error in mspa(hsEnv.detr, cn, scannf = FALSE) :
   lw must be a listw object (package spdep)/
/
/If I remonve $cn, then I have this:/
//
 > cn <- chooseCN(oribatid$xy,res="listw",ask=FALSE,type=1)
 > class(cn)
[1] "listw" "nb"
 > mspaEnv <- mspa(hsEnv.detr,cn,scannf=FALSE)
Error in mspa(hsEnv.detr, cn, scannf = FALSE) :
   object 'network' not found

/How should I do?
Thanks
Cecile
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20110127/e6a5f767/attachment.htm>


More information about the adegenet-forum mailing list