seploc {adegenet} | R Documentation |
The function seppop
splits a genind object by
population, returning a list of objects whose components each
correspond to a population.
By default, components of the list are genind objects.
It can also be a matrix of genotypes corresponding to the x$tab.
## S4 method for signature 'genind': seppop(x,pop=NULL,truenames=TRUE,res.type=c("genind","matrix"))
x |
a genind object |
pop |
a factor giving the population of each genotype in 'x'. If not provided, seeked in x$pop. |
truenames |
a logical indicating whether true names should be used (TRUE, default) instead of generic labels (FALSE); used if res.type is "matrix". |
res.type |
a character indicating the type of returned results, a list of genind object (default) or a matrix of data corresponding to the 'tab' slots. |
According to 'rse.type': a list of genind object (default) or a matrix of data corresponding to the 'tab' slots.
Thibaut Jombart jombart@biomserv.univ-lyon1.fr
data(microbov) obj <- seppop(microbov) names(obj) obj$Salers