Learn R Programming

pedtools (version 2.8.0)

swapGenotypes: Swap genotypes between individuals

Description

Swap genotypes between individuals

Usage

swapGenotypes(x, ids = NULL)

Value

An object identical to x, except that the genotypes of the ids

pair have been swapped.

Arguments

x

A ped object or a list of such.

ids

A vector of 2 members of x.

See Also

transferMarkers()

Examples

Run this code
x = nuclearPed() |>
  addMarker(geno = c("1/1", "2/2", "3/3"))

swapGenotypes(x, ids = 1:2)

Run the code above in your browser using DataLab