seploc {adegenet} | R Documentation |
The function seploc
splits an object (genind or
genpop) by marker, returning a list of objects whose components
each correspond to a marker.
## S4 method for signature 'genind': seploc(x,truenames=TRUE,res.type=c("genind","matrix")) ## S4 method for signature 'genpop': seploc(x,truenames=TRUE,res.type=c("genpop","matrix"))
x |
a genind or a genpop object. |
truenames |
a logical indicating whether true names should be used (TRUE, default) instead of generic labels (FALSE). |
res.type |
a character indicating the type of returned results, a genind or genpop object (default) or a matrix of data corresponding to the 'tab' slot. |
The function seploc
returns an list of objects of the
same class as the initial object, or a list of matrices similar to
x$tab.
Thibaut Jombart jombart@biomserv.univ-lyon1.fr
data(microbov) # separate all markers obj <- seploc(microbov) names(obj) obj$INRA5