<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<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;">Hi Norman,
<br>
<br>
please check the guidelines when posting - this question has been answered a few times on this forum.<br>
<br>
Check for instance:<br>
<a href="http://lists.r-forge.r-project.org/pipermail/adegenet-forum/2010-November/000158.html" target="_blank">http://lists.r-forge.r-project.org/pipermail/adegenet-forum/2010-November/000158.html</a><br>
<br>
Cheers<br>
Thibaut<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF144113"><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 normanm muzhinji [muzhinjin@yahoo.com]<br>
<b>Sent:</b> 20 August 2015 14:29<br>
<b>To:</b> Vojtìch Zeisek; Adegenet R-Forum<br>
<b>Subject:</b> Re: [adegenet-forum] Importing data<br>
</font><br>
</div>
<div></div>
<div>
<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 face="Arial" size="2">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" href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">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>
</div>
</div>
</div>
</body>
</html>