<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;"><font size="2">Hello,
<br>
<br>
which version of adegenet are you using?<br>
<br>
Cheers<br>
Thibaut<br>
</font>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF989557"><font face="Tahoma" color="#000000" size="2"><b>From:</b> adegenet-forum-bounces@lists.r-forge.r-project.org [adegenet-forum-bounces@lists.r-forge.r-project.org] on behalf of Vikram Chhatre [crypticlineage@gmail.com]<br>
<b>Sent:</b> 01 July 2015 19:01<br>
<b>To:</b> adegenet-forum@lists.r-forge.r-project.org<br>
<b>Subject:</b> [adegenet-forum] structure import error<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">I am having trouble importing a structure dataset. Can someone decipher this error message?
<div><br>
</div>
<div>import2genind('data.str', onerowperind=F, row.marknames=1, n.ind=296, n.loc=84761, col.lab=1, col.pop=2, ask=F)</div>
<div><br>
</div>
<div>Error in mat[, (ncol(mat) - p +1):ncol(mat)]:</div>
<div> only 0's may be mixed with negative subscripts.</div>
<div><br>
</div>
<div>I am able to read the data in R as a data frame and the dimensions are as expected. The df2genind(data.str) conversion also works ok, except that it reads the file as ONEROWPERIND=1, which is not what I want.</div>
<div><br>
</div>
<div>Thanks</div>
<div>Vikram</div>
</div>
</div>
</div>
</div>
</body>
</html>