seploc {adegenet}R Documentation

Separate genotypes per population

Description

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.

Usage

## S4 method for signature 'genind':
seppop(x,pop=NULL,truenames=TRUE,res.type=c("genind","matrix"))

Arguments

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.

Value

According to 'rse.type': a list of genind object (default) or a matrix of data corresponding to the 'tab' slots.

Author(s)

Thibaut Jombart jombart@biomserv.univ-lyon1.fr

See Also

seploc, repool

Examples

data(microbov)

obj <- seppop(microbov)
names(obj)

obj$Salers

[Package adegenet version 1.2-2 Index]