<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1440075654310_27516">Thank you</div><div id="yui_3_16_0_1_1440075654310_27516"><br></div><div id="yui_3_16_0_1_1440075654310_27516" dir="ltr">I am now using Fstat format and this is what I am getting</div><div id="yui_3_16_0_1_1440075654310_27516" dir="ltr"><br></div><div id="yui_3_16_0_1_1440075654310_27516" class="">> obj <- read.fstat(system.file("files/rhizoc.dat",package="adegenet"))</div><div id="yui_3_16_0_1_1440075654310_27516" class=""><br></div><div id="yui_3_16_0_1_1440075654310_27516" class="">Error in if (toupper(.readExt(file)) != "DAT") stop("File extension .dat expected") : </div><div id="yui_3_16_0_1_1440075654310_27516" class="">argument is of length zero<br></div><div id="yui_3_16_0_1_1440075654310_27516" class=""><br></div><div id="yui_3_16_0_1_1440075654310_27516" class="" dir="ltr">The data I am using is as attached. I used the same data for calculating population genetic parameters in FSTAT package</div><div id="yui_3_16_0_1_1440075654310_27516" class=""><br></div><div id="yui_3_16_0_1_1440075654310_27516" class=""><br></div><div id="yui_3_16_0_1_1440075654310_27516" class="">Thanks for your help</div><div id="yui_3_16_0_1_1440075654310_27516" class=""><br></div><div id="yui_3_16_0_1_1440075654310_27516" class="">Norman</div><div id="yui_3_16_0_1_1440075654310_27516"><br></div> <br><div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font size="2" face="Arial"> On Wednesday, August 19, 2015 8:02 PM, Vojtěch Zeisek <vojta@trapa.cz> wrote:<br> </font> </div> <br><br> <div class="y_msg_container">Hi<br clear="none"><br clear="none">Dne St 19. srpna 2015 17:24:01, normanm muzhinji napsal(a):<br clear="none">> I am trying to import my data using structure format but I am getting thisr<br clear="none">> message Error in if (!toupper(.readExt(file)) %in% c("STR", "STRU"))<br clear="none">> stop("File extension .stru expected") : argument is of length zero<br clear="none"><br clear="none">Which commands did You use? How do Your data look like?<br clear="none"><br clear="none">> Could you kindly help on what commands to use for importing a data saved on<br clear="none">> my documents or /on desktop to adegenet for analysis.<br clear="none"><br clear="none">You probably started with documentation <br clear="none"><a shape="rect" href="https://github.com/thibautjombart/adegenet/wiki/Tutorials" target="_blank">https://github.com/thibautjombart/adegenet/wiki/Tutorials </a>We then need to know <br clear="none">what You did to find out what went wrong...<div class="yqt8372890380" id="yqtfd68912"><br clear="none"><br clear="none">> Thanks for your help</div><br clear="none"><br clear="none">Sincerely,<br clear="none">Vojtěch<br clear="none"><br clear="none">-- <br clear="none">Vojtěch Zeisek<br clear="none"><a shape="rect" href="http://trapa.cz/en/" target="_blank">http://trapa.cz/en/</a><br clear="none"><br clear="none">Department of Botany, Faculty of Science<br clear="none">Charles University in Prague<br clear="none">Benátská 2, Prague, 12801, CZ<br clear="none"><a shape="rect" href="http://botany.natur.cuni.cz/en/" target="_blank">http://botany.natur.cuni.cz/en/</a><br clear="none"><br clear="none">Institute of Botany, Academy of Science<br clear="none">Zámek 1, Průhonice, 25243, CZ<br clear="none"><a shape="rect" href="http://www.ibot.cas.cz/en/" target="_blank">http://www.ibot.cas.cz/en/</a><br clear="none"><br clear="none">Czech Republic<br>_______________________________________________<br clear="none">adegenet-forum mailing list<br clear="none"><a shape="rect" ymailto="mailto:adegenet-forum@lists.r-forge.r-project.org" href="mailto:adegenet-forum@lists.r-forge.r-project.org">adegenet-forum@lists.r-forge.r-project.org</a><br clear="none"><a shape="rect" href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/adegenet-forum" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/adegenet-forum</a><br><br></div> </div> </div> </div></div></body></html>