Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

getal

Converts diploid genotypic data into allelic data


Description

Converts diploid genotypic data into allelic data

Usage

getal(data)

Arguments

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-

Value

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

Author(s)

Jerome Goudet jerome.goudet@unil.ch

Examples

data(gtrunchier)
getal(data.frame(gtrunchier[,-2]))

hierfstat

Estimation and Tests of Hierarchical F-Statistics

v0.5-10
GPL (>= 2)
Authors
Jerome Goudet [aut, cre], Thibaut Jombart [aut], Zhian N. Kamvar [ctb], Eric Archer [ctb], Olivier Hardy [ctb]
Initial release
2021-11-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.