randomSample | R Documentation |
Generate a random sample of unrelated, full-sib, or parent/child pairs of profiles at a single locus.
randomSample(nLoc, Freqs, rel = "UN", N = 10000)
nLoc |
The locus number to sample from |
Freqs |
A list containg elements |
rel |
One of 'UN', 'FS', or 'PC' for unrelated, full-sib, or parent/child pairs respectively. |
N |
The sample size |
An N by 4 matrix of random profiles. The first two columns represent the genotype of person one and the second two columns represent the genotype of column two. Note that the random profiles do not use the orginal allele designations.
James M. Curran
randomProfile, randomSib, randomChild
data(fbiCaucs)
G = randomSample(1, fbiCaucs, "FS", 100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.