reorderLoci: Reorder class genalex genotype columns

Description Usage Arguments Value Author(s) Examples

Description

Reorder the genotype columns of a class genalex object by locus.

Usage

1
2
## S3 method for class 'genalex'
reorderLoci(x, loci, ...)

Arguments

x

An annotated data frame of class genalex

loci

The names of loci found in x, in the desired new order. All loci in x must be named, and no loci may be duplicated. The order of the alleles within each locus is preserved.

...

Additional arguments, currently ignored

Value

A data frame of class genalex containing the same genotype data from x reordered according to loci.

Author(s)

Douglas G. Scofield

Examples

1
2
3
4
data(Qagr_adult_genotypes)
# reverse loci
loci <- rev(attr(Qagr_adult_genotypes, "locus.names"))
reord = reorderLoci(Qagr_adult_genotypes, rev(loci))

douglasgscofield/readGenalex documentation built on May 15, 2019, 10:43 a.m.