| sameGenotype | R Documentation |
Identifies markers for which two individuals have the same (non-missing) genotype. The comparison is done after sorting the genotypes internally.
sameGenotype(x, ids = typedMembers(x), count = FALSE)
x |
A |
ids |
A vector of two individual ID labels. |
count |
A logical. If TRUE, return the number of markers with shared genotype. |
A logical vector with one entry per marker (NA if either genotype
is missing). If count = TRUE, the number of TRUE entries.
isHomozygous(), sortGenotypes()
x = nuclearPed() |>
addMarker(name = "m1", geno = c(NA, "1/1", "1/2")) |>
addMarker(name = "m2", geno = c(NA, "1/2", "2/1"))
sameGenotype(x, 2:3)
sameGenotype(x, 2:3, count = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.