[adegenet-forum] isolate individuals from a Genind object

Jombart, Thibaut t.jombart at imperial.ac.uk
Tue Dec 8 15:03:16 CET 2015


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://www.inside-r.org/sites/all/themes/rweb/images/masthead.jpg]<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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20151208/6df2a459/attachment.html>


More information about the adegenet-forum mailing list