GenerateSamples {HardyWeinberg} | R Documentation |
Generate genotypic compositions
Description
GenerateSamples
generates all possible genotypic compositions
(AA,AB,BB) for a given sample size n
.
Usage
GenerateSamples(n = 5)
Arguments
n |
the desired sample size |
Value
returns a matrix with in each row a possible genotypic compostion for the given sample size.
Author(s)
Jan Graffelman jan.graffelman@upc.edu
Examples
GenerateSamples(5)
[Package HardyWeinberg version 1.7.8 Index]