transferMarkerdata: Transfer marker data

View source: R/transferMarkerdata.R

transferMarkerdataR Documentation

Transfer marker data

Description

Transfer marker data between pedigrees (in the form of linkdat objects). Both the source and target can be lists of linkdat and/or singleton objects (these must have disjoint ID sets). Any previous marker data of the target is overwritten.

Usage

transferMarkerdata(from, to)

Arguments

from

a linkdat or singleton object, or a list of such objects.

to

a linkdat or singleton object, or a list of such objects.

Value

A linkdat object (or a list of such) similar to to, but where all individuals also present in from have marker genotypes copied over. Any previous marker data is erased.

See Also

linkdat

Examples


x = list(singleton(id=5), nuclearPed(noffs=2))
x = markerSim(x, N=5, alleles=1:5, verbose=FALSE, available=4:5)
y = nuclearPed(noffs=3)
y = transferMarkerdata(x, y)
stopifnot(all.equal(x[[1]], branch(y,5)))
stopifnot(all.equal(x[[2]], subset(y,1:4)))


paramlink documentation built on April 15, 2022, 9:06 a.m.