Learn R Programming

adegenet (version 1.2-7)

seploc: Separate data per locus

Description

The function seploc splits an object (genind or genpop) by marker, returning a list of objects whose components each correspond to a marker.

Usage

## S3 method for class 'genind':
seploc(x,truenames=TRUE,res.type=c("genind","matrix"))
## S3 method for class 'genpop':
seploc(x,truenames=TRUE,res.type=c("genpop","matrix"))

Arguments

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.

Value

  • 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.

encoding

UTF-8

See Also

seppop, repool

Examples

Run this code
data(microbov)

# separate all markers
obj <- seploc(microbov)
names(obj)

obj$INRA5

Run the code above in your browser using DataLab