<div dir="ltr">Hello, <div><br></div><div>by the sound if it base R will make your life easier - have a look at ?rep</div><div><br></div><div>For instance:</div><div><div>> rep(c("foo", "bar"), each = 10)</div><div> [1] "foo" "foo" "foo" "foo" "foo" "foo" "foo" "foo" "foo" "foo" "bar" "bar"</div><div>[13] "bar" "bar" "bar" "bar" "bar" "bar" "bar" "bar"</div><div>> </div></div><div><br></div><div>Cheers</div><div>Thibaut</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><br>--<br>Dr Thibaut Jombart<br>Lecturer, Department of Infectious Disease Epidemiology, Imperial College London<br>Head of RECON: <a href="http://repidemicsconsortium.org" target="_blank">repidemicsconsortium.org</a><br>WHO Consultant - outbreak analysis</div><div><a href="https://thibautjombart.netlify.com" target="_blank">https://thibautjombart.netlify.com</a><br>Twitter: @TeebzR<br>+44(0)20 7594 3658</div></div></div></div>
<br><div class="gmail_quote">On 22 February 2018 at 11:27, Arsalan Emami-Khoyi <span dir="ltr"><<a href="mailto:arsalane@protonmail.com" target="_blank">arsalane@protonmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="color:rgb(85,85,85);font-family:"Lucida Grande",Verdana,Arial,sans-serif;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Hello Thibaut,<br></div><div style="color:rgb(85,85,85);font-family:"Lucida Grande",Verdana,Arial,sans-serif;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">I hope that you are fine and all goes well.<br></div><div style="color:rgb(85,85,85);font-family:"Lucida Grande",Verdana,Arial,sans-serif;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">A rapid question :<br></div><div style="color:rgb(85,85,85);font-family:"Lucida Grande",Verdana,Arial,sans-serif;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">When I import a large alignment of DNA sequences using the different tools, How can I efficiently assign geographical location to each individuals or population.<br></div><div style="color:rgb(85,85,85);font-family:"Lucida Grande",Verdana,Arial,sans-serif;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">e.g ,<br></div><div style="color:rgb(85,85,85);font-family:"Lucida Grande",Verdana,Arial,sans-serif;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">An alignment of 1000 sequences from 10 populations each sampled for 100 animals.<br></div><div style="color:rgb(85,85,85);font-family:"Lucida Grande",Verdana,Arial,sans-serif;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">What I do at the moment is to make a 1000 lines text file for x and Y coordinates for each individuals.<br></div><div style="color:rgb(85,85,85);font-family:"Lucida Grande",Verdana,Arial,sans-serif;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Of course each 100 rows has exactly the same coordinates.<br></div><div style="color:rgb(85,85,85);font-family:"Lucida Grande",Verdana,Arial,sans-serif;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">I guess they should be a more efficient way of doing that, am I correct ?<br></div><div style="color:rgb(85,85,85);font-family:"Lucida Grande",Verdana,Arial,sans-serif;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">heaps of thanks in advance<br></div><div class="m_8470630822069377337protonmail_signature_block"><div class="m_8470630822069377337protonmail_signature_block-user"><div><span class="m_8470630822069377337font" style="font-family:verdana,sans-serif">Regards</span><br></div><div><div class="m_8470630822069377337signature"><div style="font-family:menlo,consolas,monospace"><span class="m_8470630822069377337font" style="font-family:verdana,sans-serif"></span><br></div></div><div class="m_8470630822069377337signature"><span class="m_8470630822069377337font" style="font-family:verdana,sans-serif">Arsalan Emami-Khoyi</span><span class="m_8470630822069377337font" style="font-family:verdana,sans-serif"></span><br></div><div class="m_8470630822069377337signature"><span class="m_8470630822069377337font" style="font-family:verdana,sans-serif">Postdoctoral Research Fellow in Wildlife Genomics</span><span class="m_8470630822069377337font" style="font-family:verdana,sans-serif"></span><br></div><div class="m_8470630822069377337signature"><span class="m_8470630822069377337font" style="font-family:verdana,sans-serif">University of Johannesburg_Center for Ecological Genomics and Wildlife Conservation</span><span class="m_8470630822069377337font" style="font-family:verdana,sans-serif"></span><br></div><div class="m_8470630822069377337signature"><span class="m_8470630822069377337font" style="font-family:verdana,sans-serif">Auckland Park 2006</span><span class="m_8470630822069377337font" style="font-family:verdana,sans-serif"></span><br></div><div class="m_8470630822069377337signature"><span class="m_8470630822069377337font" style="font-family:verdana,sans-serif">South Africa</span><span class="m_8470630822069377337font" style="font-family:verdana,sans-serif"></span><br></div><div class="m_8470630822069377337signature"><span class="m_8470630822069377337font" style="font-family:verdana,sans-serif">Email : </span><a href="mailto:Arsalane@uj.ac.za" target="_blank"><span class="m_8470630822069377337font" style="font-family:verdana,sans-serif">Arsalane@uj.ac.za</span></a><span class="m_8470630822069377337font" style="font-family:verdana,sans-serif"></span><br></div><div class="m_8470630822069377337signature"><span class="m_8470630822069377337font" style="font-family:verdana,sans-serif">Phone :<a href="tel:+27%2011%20559%203373" value="+27115593373" target="_blank">+27 (0)11 559 3373</a></span><br></div><div class="m_8470630822069377337signature"><span class="m_8470630822069377337font" style="font-family:menlo,consolas,monospace,sans-serif">Cellphone:+27 79 88 14 628</span><br></div><div class="m_8470630822069377337signature"><span class="m_8470630822069377337font" style="font-family:menlo,consolas,monospace,sans-serif">Website :</span><a href="https://sites.google.com/site/drpeterteske/postdocs" target="_blank"><span class="m_8470630822069377337font" style="font-family:menlo,consolas,monospace,sans-serif">https://sites.google.com/<wbr>site/drpeterteske/postdocs</span></a><br></div></div><div><img src="cid:42125efa72@protonmail.com" alt="EGWC-LOGO (1).png" class="m_8470630822069377337proton-embedded"><br></div></div><div><br></div><div class="m_8470630822069377337protonmail_signature_block-proton">Sent with <a href="https://protonmail.com" target="_blank">ProtonMail</a> Secure Email.<br></div></div><div><br></div><br>______________________________<wbr>_________________<br>
adegenet-forum mailing list<br>
<a href="mailto:adegenet-forum@lists.r-forge.r-project.org">adegenet-forum@lists.r-forge.<wbr>r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/adegenet-forum" rel="noreferrer" target="_blank">https://lists.r-forge.r-<wbr>project.org/cgi-bin/mailman/<wbr>listinfo/adegenet-forum</a><br></blockquote></div><br></div>