<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="line-height: 19px; "><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">Dear Roman,</span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="line-height: 19px; "><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">here I attach more details:</span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="line-height: 19px; "><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></span></div><div style="text-align: justify; widows: 1;"><font class="Apple-style-span" color="#666666" face="DroidSansRegular, Arial, sans-serif" size="4"><span class="Apple-style-span" style="font-size: 14px; line-height: 19px;"><b><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">his is my dataset (named a), based on a STRUCTURE file</font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000"><br></font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000"> pop S1_51 S1_835 S1_938 S1_1132 S1_1317 S1_1350 S1_2321 S1_2451 S1_1640</font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">1 8 3 2 1 0 4 3 4 0 4</font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">2 8 3 2 1 0 4 3 4 0 4</font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">3 8 3 2 3 3 4 3 4 4 4</font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">4 8 3 2 3 3 4 3 4 4 4</font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">5 8 3 2 1 0 4 3 4 4 4</font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">6 8 3 2 1 0 4 3 4 4 4</font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">7 8 3 2 1 3 4 3 4 4 4</font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">8 8 3 2 1 3 4 3 4 4 4</font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">9 8 2 2 1 3 4 3 4 4 4</font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">10 8 3 2 3 3 4 3 4 4 4</font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">11 9 2 2 1 3 4 3 4 4 4</font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">12 9 3 2 1 3 4 3 4 4 4</font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">13 9 3 2 1 3 4 3 4 0 4</font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">14 9 3 2 1 3 4 3 4 0 4</font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">15 9 3 2 1 3 4 3 4 0 4</font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">16 9 3 2 1 3 4 3 4 0 4</font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">17 9 3 2 1 3 4 3 4 2 4</font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">18 9 3 2 1 3 4 3 4 4 4</font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">19 9 3 2 1 3 4 0 4 4 4</font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">20 9 3 2 1 3 4 0 4 4 4</font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">21 11 3 2 3 3 4 3 4 4 4</font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">22 11 3 2 3 3 4 3 4 4 4</font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">23 11 3 2 3 3 2 3 4 4 4</font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">24 11 3 2 3 3 4 3 4 4 4</font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000"><br></font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000"><br></font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">then, I transform my data frame in a genind object (named Mydata1). If I apply the basic.stats function, I get the following error messsage</font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000"><br></font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">> basicstat <- basic.stats(Mydata1, diploid = TRUE, digits = 4) </font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">Error in unique.default(x, nmax = nmax) : </font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000"> unique() si applica solo a vettori</font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">> </font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000"><br></font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000"><br></font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">On the manual, I read that I can use any data frame with the population in the first column and the other columns as loci. If I apply basic.stats to my data frame, I get the following error message:</font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000"><br></font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">> basicstat <- basic.stats(a, diploid = TRUE, digits = 4) </font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">Error in data.frame(pop = rep(data[, 1], 2), ind = ind, al = rbind(firstal, : </font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000"> arguments imply differing number of rows: 356, 236</font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000"><br></font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">but my data frame has:</font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">> nrow(a)</font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">[1] 178</font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">> ncol(a)</font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">[1] 8480</font></span></font></span></div><div style="text-align: justify; widows: 1;"><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#000000">> </font></span></font></span></div><div style="text-align: justify; widows: 1;"><font class="Apple-style-span" color="#000000" face="Helvetica, Arial, sans-serif" size="3"><span class="Apple-style-span" style="font-size: 12px; font-weight: normal;"><br></span></font></div><div style="text-align: justify; widows: 1;"><font class="Apple-style-span" color="#000000" face="Helvetica, Arial, sans-serif" size="3"><span class="Apple-style-span" style="font-size: 12px; font-weight: normal;">Thanks a lot!</span></font></div><div style="text-align: justify; widows: 1;"><font class="Apple-style-span" color="#000000" face="Helvetica, Arial, sans-serif" size="3"><span class="Apple-style-span" style="font-size: 12px; font-weight: normal;">Maria</span></font></div><div style="text-align: justify; widows: 1;"><font class="Apple-style-span" color="#000000" face="Helvetica, Arial, sans-serif" size="3"><span class="Apple-style-span" style="font-size: 12px; font-weight: normal;"><br></span></font></div></b></span></font></div><meta charset="utf-8"><div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--</div><div>Maria Guerrina PhD</div><div><div>Università di Genova</div><div>DISTAV</div><div>Corso Dogali 1M</div><div>I - 16136 GENOVA (Italy)</div></div><div><a href="mailto:maria.guerrina@edu.unige.it">maria.guerrina@edu.unige.it</a></div><div><br></div></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br></body></html>