Description Usage Arguments Details Value Examples
Restructure genotypic data into several forms.
This function is not yet official part of the package:
1 | restructure(individual, struc = c("_", "g", "c", "cg"), check = FALSE)
|
individual |
An individual (genotypic representation). |
struc |
Character. Either of |
check |
Logical. Should checks be performed? |
If struc == '_'
(default), the result is a matrix (both chromosomes
and gametes are concatenated). If struc == 'g'
, only gametes are concatenated
(chromosomes remain separated). If struc == 'c'
, only chromosomes are concatenated
(gametes remain separated), and if struc == 'cg'
, gametes get nested
within chromosomes, everything being separated.
A matrix or a list, depending on the parameter struc
.
1 2 3 4 5 6 7 8 | ## Not run:
data('exdat', package = 'Meiosis')
str(restructure(exdat$ind))
str(restructure(exdat$ind, struc = 'c'))
str(restructure(exdat$ind, struc = 'g'))
str(restructure(exdat$ind, struc = 'cg'))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.