Dear adegenet users,<br>I have been trying sPCA on two datasets that I have. These are binary datasets generated with AFLP. While things went smooth as ice with the first, the second is giving me the following error:<br><br>
# start of error<br>spca1 &lt;- spca (dat1, cn = CN, scannf = F)<br>Error in names(auxi) &lt;- paste(&quot;CS&quot;, agarder, sep = &quot;&quot;) : <br>  &#39;names&#39; attribute [3] must be the same length as the vector [2]<br>
In addition: Warning message:<br>In multispati(dudi = pcaX, listw = resCN, scannf = scannf, nfposi = nfposi,  :<br>  There are only 0 positive factors.<br><br># end of error<br><br>The CN works fine, gets plotted well. The same thing works well on my other dataset. I have tried many things, but nothing seems to work! I would like some help on this one. <br>
<br>Sandhya<br><br><br clear="all"><br>-- <br>Sandhya Sekar<br>PhD student<br>Center for Ecological Sciences<div>Indian Institute of Science<br><a href="mailto:sandhya@ces.iisc.ernet.in" target="_blank">sandhya@ces.iisc.ernet.in</a></div>
<br>