swapGenotypes {pedtools} | R Documentation |
Swap genotypes between individuals
Description
Swap genotypes between individuals
Usage
swapGenotypes(x, ids = NULL)
Arguments
x |
A |
ids |
A vector of 2 members of |
Value
An object identical to x
, except that the genotypes of the ids
pair have been swapped.
See Also
Examples
x = nuclearPed() |>
addMarker(geno = c("1/1", "2/2", "3/3"))
swapGenotypes(x, ids = 1:2)
[Package pedtools version 2.7.1 Index]