<div dir="ltr"><span style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">Hi Thibaut.</span><br><div><span style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">Works like a charm.</span></div><div><span style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">Thank you.</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-12-08 11:03 GMT-03:00 Jombart, Thibaut <span dir="ltr"><<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi there, <br>
</p>
<p><br>
</p>
<p>yes, use x[i=[whatever subsetting of individual you need]. It will be match against indNames(x).</p>
<p><br>
</p>
<p>Cheers</p>
<p>Thibaut<br>
</p>
<p><br>
</p>
<p><br>
</p>
<br>
<div>
<div style="font-family:Tahoma;font-size:13px">
<div><font size="2"><span style="font-size:10pt">
<div><br>
<br>
</div>
</span></font></div>
</div>
</div>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> <a href="mailto:adegenet-forum-bounces@lists.r-forge.r-project.org" target="_blank">adegenet-forum-bounces@lists.r-forge.r-project.org</a> <<a href="mailto:adegenet-forum-bounces@lists.r-forge.r-project.org" target="_blank">adegenet-forum-bounces@lists.r-forge.r-project.org</a>> on behalf of Ronald Moura <<a href="mailto:ronaldmoura1989@gmail.com" target="_blank">ronaldmoura1989@gmail.com</a>><br>
<b>Sent:</b> 04 December 2015 17:15<br>
<b>To:</b> <a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a><br>
<b>Subject:</b> [adegenet-forum] isolate individuals from a Genind object</font>
<div> </div>
</div>
<div>
<div dir="ltr"><span class="">Hi,
<div><br>
</div>
<div>Is there any way to extract a subset of individuals from a Genind object? To isolate markers the command is:</div>
<div><span style="font-size:12px;line-height:12.48px"><br>
</span></div>
<div><span style="font-size:12px;line-height:12.48px">obj </span><span style="font-size:12px;line-height:12.48px;margin:0px;padding:0px"><-</span><span style="font-size:12px;line-height:12.48px"> nancycats</span><span style="font-size:12px;line-height:12.48px;margin:0px;padding:0px;color:rgb(0,153,0)">[</span><span style="font-size:12px;line-height:12.48px">loc=</span><a href="http://inside-r.org/r-doc/base/c" style="font-size:12px;line-height:12.48px;margin:0px;padding:0px;color:rgb(0,119,223);text-decoration:none" target="_blank"><span style="margin:0px;padding:0px;color:rgb(0,51,153);font-weight:bold">c</span></a><span style="font-size:12px;line-height:12.48px;margin:0px;padding:0px;color:rgb(0,153,0)">(</span><span style="font-size:12px;line-height:12.48px;margin:0px;padding:0px;color:rgb(0,0,255)">"fca23"</span><span style="font-size:12px;line-height:12.48px;margin:0px;padding:0px;color:rgb(51,153,51)">,</span><span style="font-size:12px;line-height:12.48px;margin:0px;padding:0px;color:rgb(0,0,255)">"fca90"</span><span style="font-size:12px;line-height:12.48px;margin:0px;padding:0px;color:rgb(0,153,0)">)</span><span style="font-size:12px;line-height:12.48px;margin:0px;padding:0px;color:rgb(0,153,0)">]</span></div>
</span><div style="margin-top:20px;margin-bottom:20px;overflow:auto;width:100%">
<table style="border-top:1px solid rgb(204,204,204);border-bottom:1px solid rgb(204,204,204);width:80%;background-color:rgb(255,255,255);overflow:auto">
<tbody>
<tr style="border-spacing:0px" valign="top">
<td colspan="1" style="width:250px;display:table-cell;padding-right:20px">
<div style="margin-top:12px;background-color:rgb(255,255,255);min-height:30px;width:250px;padding:0px;display:table">
<a href="http://inside-r.org/r-doc/base/c" style="display:table-cell;text-align:center" target="_blank"><img style="display:inline-block;margin-left:auto;margin-right:auto;max-width:250px;max-height:250px;min-height:26px;width:250px;border-width:0px" height="26" width="250" src="http://www.inside-r.org/sites/all/themes/rweb/images/masthead.jpg"></a></div>
</td>
<td>
<div style="margin-top:8px;font-size:21px;font-family:"wf_segoe-ui_semilight","Segoe UI Semilight","Segoe WP Semilight","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;color:rgb(51,51,51);margin-left:14px;margin-right:14px">
c {base} | inside-R | A Community Site for R</div>
<div style="margin-top:8px;font-size:13px;font-family:"wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;color:rgb(102,102,102);margin-left:14px;margin-right:14px">
This is a collection of the help pages from every function and dataset in the latest version of R (base and recommended packages). Add your comments to the page to ...</div>
<div style="margin:8px 14px 10px;min-height:18px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap">
<a href="http://inside-r.org/r-doc/base/c" style="font-size:11px;font-family:"wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;text-decoration:none" target="_blank">Read more...</a></div>
</td>
</tr>
</tbody>
</table>
</div><span class="">
<div><br>
Is there a similar command for individuals?</div>
<div><br>
</div>
<div>thanks for helping.</div>
<div><br>
</div>
<div>-- <br>
<div>
<div dir="ltr"><span style="display:block"><span>Yours sincerely,</span></span><br>
Ronald Moura<br>
<br>
Department of Genetics, Federal University of Pernambuco<br>
</div>
</div>
</div>
</span></div>
</div>
</div>
</div>
</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><span style="display:block"><span>Yours sincerely,</span></span><br>Ronald Moura<br><br>Department of Genetics, Federal University of Pernambuco<br></div></div>
</div>