View source: R/transferMarkerdata.R
transferMarkerdata | R Documentation |
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.
transferMarkerdata(from, to)
from |
a |
to |
a |
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.
linkdat
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)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.