<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<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;">Hello,
<br>
<br>
the quickest way to fix this in the devel - tomorrow official - version of the package is:<br>
####<br>
indNames(data) &lt;- 1:nInd(data)<br>
<div>####<br>
assuming 'data' is your genind object.<br>
<br>
Otherwise, with older versions:<br>
####<br>
data@ind.names &lt;- as.character(1:nrow(data@tab))<br>
####<br>
<br>
Cheers<br>
<br>
Thibaut<br>
<br>
</div>
<div style="font-family: Times New Roman; color: rgb(0, 0, 0); font-size: 16px;">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF9245"><font color="#000000" face="Tahoma" size="2"><b>From:</b> adegenet-forum-bounces@r-forge.wu-wien.ac.at [adegenet-forum-bounces@r-forge.wu-wien.ac.at] on behalf of nicolas dussex [nicolas.dussex@gmail.com]<br>
<b>Sent:</b> 21 June 2011 02:04<br>
<b>To:</b> adegenet-forum@r-forge.wu-wien.ac.at<br>
<b>Subject:</b> [adegenet-forum] duplictaed names from genepop to genind format<br>
</font><br>
</div>
<div></div>
<div>
<div>Hi,</div>
<div>&nbsp;</div>
<div>When entering the following command in R to look for population clustering, I got this error message:
</div>
<div>&nbsp;</div>
<div>&gt; grp &lt;- find.clusters(data, max.n.clust = 40)</div>
<div>&nbsp;</div>
<div>I got the following erorr message: </div>
<div>&nbsp;</div>
<div>BRE CFO CPA DUS HOR MAA NUG OBI OHA STE SUB TON VIC WAU WEK <br>
&nbsp;10&nbsp; 53&nbsp; 30&nbsp; 11&nbsp; 28&nbsp; 10&nbsp; 27&nbsp; 64&nbsp; 57&nbsp; 10&nbsp; 13&nbsp;&nbsp; 9&nbsp; 22&nbsp; 16&nbsp; 23 </div>
<div>BRE CFO CPA DUS HOR MAA NUG OBI OHA STE SUB TON VIC WAU WEK <br>
&nbsp;10&nbsp; 53&nbsp; 30&nbsp; 11&nbsp; 28&nbsp; 10&nbsp; 27&nbsp; 64&nbsp; 57&nbsp; 10&nbsp; 13&nbsp;&nbsp; 9&nbsp; 22&nbsp; 16&nbsp; 23 <br>
Error in `row.names&lt;-.data.frame`(`*tmp*`, value = c(&quot;BRE&quot;, &quot;BRE&quot;, &quot;BRE&quot;,&nbsp; : <br>
&nbsp; duplicate 'row.names' are not allowed<br>
In addition: Warning messages:<br>
1: In validityMethod(object) : <br>
duplicate names in ind.names:</div>
<div>2: In validityMethod(object) : <br>
duplicate names in ind.names:</div>
<div>3: In data.row.names(row.names, rowsi, i) :<br>
&nbsp; some row.names duplicated: 2,3,4,5,6,7,8,9,10,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278
 [... truncated]<br>
4: non-unique values when setting 'row.names': ‘BRE’, ‘CFO’, ‘CPA’, ‘DUS’, ‘HOR’, ‘MAA’, ‘NUG’, ‘OBI’, ‘OHA’, ‘STE’, ‘SUB’, ‘TON’, ‘VIC’, ‘WAU’, ‘WEK’
<br>
&gt; <br>
</div>
<div>Looking at past entries on the forum, I found that the matter had been discussed previouslz but I thought the bug had been fixed.
</div>
<div>&nbsp;</div>
<div>Do you have a solution to this issue?</div>
<div>&nbsp;</div>
<div>Much appreciated.</div>
<div>&nbsp;</div>
<div>Nic<br clear="all">
<br>
-- <br>
Nicolas Dussex<br>
PhD Candidate<br>
Department of Zoology<br>
University of Otago<br>
340 Great King Street<br>
P.O.Box 56<br>
Dunedin 9054<br>
New Zealand<br>
<br>
Mobile: 021 02790938<br>
<br>
</div>
</div>
</div>
</div>
</body>
</html>