getal | R Documentation |
Converts diploid genotypic data into allelic data
getal(data)
data |
a data frame where the first column contains the population to which the different individuals belong, and the following columns contain the genotype of the individuals -one locus per column- |
data.al |
a new data frame, with twice as many row as the input data frame and one extra column. each row of the first half of the data frame contains the first allele for each locus, and each row of the second half of the data frame contains the second allel at the locus. The extra column in second position corresponds to the identifier of the individual to which the allele belongs |
Jerome Goudet jerome.goudet@unil.ch
data(gtrunchier) getal(data.frame(gtrunchier[,-2]))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.