swapGenotypes {pedtools} | R Documentation |
Swap genotypes between individuals
swapGenotypes(x, ids = NULL)
x |
A |
ids |
A vector of 2 members of |
An object identical to x
, except that the genotypes of the ids
pair have been swapped.
x = nuclearPed() |>
addMarker(geno = c("1/1", "2/2", "3/3"))
swapGenotypes(x, ids = 1:2)