swapGenotypes: Swap genotypes between individuals

View source: R/marker_utils.R

swapGenotypesR Documentation

Swap genotypes between individuals

Description

Swap genotypes between individuals

Usage

swapGenotypes(x, ids = NULL)

Arguments

x

A ped object or a list of such.

ids

A vector of 2 members of x.

Value

An object identical to x, except that the genotypes of the ids pair have been swapped.

See Also

transferMarkers()

Examples

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

swapGenotypes(x, ids = 1:2)


pedtools documentation built on April 4, 2025, 12:24 a.m.