transferMarkerdata {paramlink} | R 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 |
|
to |
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
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)))
[Package paramlink version 1.1-5 Index]