genotype | R Documentation |
Codify Specimens' genotypes instances as numeric codes [-1/0/1] or as character vector that keeps the phase information.
genotype(pop, phase = FALSE)
pop |
a list with instances of the R6 class Specimen. |
phase |
logical should the codes keep the phase. |
A numeric or character matrix with the codified Specimens' genotypes.
data(ToyMap) spc <- set_specie(ToyMap) Aa <- founder(spc, "Aa") aA <- spc$founder("aA") Both <- list(Aa = Aa, aA = aA) ## different ways genotype(Both) # as numeric genotype(Both, phase = TRUE) # as character
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.