Description Usage Arguments Details Value Author(s) Examples
Reduce the ploidy of an object of class genalex
.
Currently restricted to reducing the ploidy of diploid data to haploid by
selecting only the first allele of each locus.
1 2 | ## S3 method for class 'genalex'
reducePloidy(x, new.ploidy = 1, ...)
|
x |
An annotated data frame of class |
new.ploidy |
The desired new ploidy. Currently, the only usefully
accepted value is 1, with ploidy of |
... |
Additional arguments, currently ignored |
This function reduced the ploidy of a data frame of class genalex
data frame by selecting the first allele of each locus. Occasionally
haploid data is encoded in GenAlEx datasets by using homozygous diploid
loci, and this is a useful function for making these truly haploid.
A data frame of class genalex
containing genotype data
from x
reduced to the specified new.ploidy
, with
attributes updated as required.
Douglas G. Scofield
1 2 3 | data(Qagr_adult_genotypes)
attr(Qagr_adult_genotypes, "ploidy")
p1 <- reducePloidy(Qagr_adult_genotypes, 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.