joinGenotypes: Join genotypes encoded as separate alleles into single...

Description Usage Arguments Value

Description

Join genotypes encoded as separate alleles into single genotypes like class genotype or class loci

Usage

1
2
3
4
5
## S3 method for class 'genalex'
joinGenotypes(x, sep = "/", ...)

## Default S3 method:
joinGenotypes(x, loci, ploidy, sep = "/", ...)

Arguments

x

An object of class genalex, a data frame, or an object that can be coerced to a data frame which contains genotypes with alleles in separate columns, to be joined into character genotypes of the form "101/107", where the "/" is determined by sep.

sep

Separator between alleles

loci

Columns or column names indicating loci to join. When called for an object of class genalex, all loci are joined.

ploidy

Ploidy of the indicated loci. When called for an object of class genalex, ploidy is determined from attributes.

...

Additional arguments, currently ignored

Value

A data frame with allele columns replaced by genotype columns


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