[adegenet-forum] isolate individuals from a Genind object

Ronald Moura ronaldmoura1989 at gmail.com
Tue Dec 8 16:06:43 CET 2015


Hi Thibaut.

Works like a charm.

Thank you.

2015-12-08 11:03 GMT-03:00 Jombart, Thibaut <t.jombart at imperial.ac.uk>:

> Hi there,
>
>
> yes, use x[i=[whatever subsetting of individual you need]. It will be
> match against indNames(x).
>
>
> Cheers
>
> Thibaut
>
>
>
>
>
>
>
>
> ------------------------------
> *From:* adegenet-forum-bounces at lists.r-forge.r-project.org <
> adegenet-forum-bounces at lists.r-forge.r-project.org> on behalf of Ronald
> Moura <ronaldmoura1989 at gmail.com>
> *Sent:* 04 December 2015 17:15
> *To:* adegenet-forum at lists.r-forge.r-project.org
> *Subject:* [adegenet-forum] isolate individuals from a Genind object
>
> Hi,
>
> Is there any way to extract a subset of individuals from a Genind object?
> To isolate markers the command is:
>
> obj <- nancycats[loc=c <http://inside-r.org/r-doc/base/c>("fca23","fca90")
> ]
> <http://inside-r.org/r-doc/base/c>
> c {base} | inside-R | A Community Site for R
> 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 ...
> Read more... <http://inside-r.org/r-doc/base/c>
>
> Is there a similar command for individuals?
>
> thanks for helping.
>
> --
> Yours sincerely,
> Ronald Moura
>
> Department of Genetics, Federal University of Pernambuco
>



-- 
Yours sincerely,
Ronald Moura

Department of Genetics, Federal University of Pernambuco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20151208/98e0b2db/attachment.html>


More information about the adegenet-forum mailing list