setAvailable {paramlink} | R Documentation |
Functions for modifying availability vectors
Description
Functions to set and modify the availability vector of a 'linkdat' object. This vector is used in 'linkage.power' and 'linkageSim', indicating for whom genotypes should be simulated.
Usage
setAvailable(x, available)
swapAvailable(x, ids)
Arguments
x |
a |
available |
a numeric containing the IDs of available individuals. |
ids |
the individual(s) whose availability status should be swapped. |
Value
The modified linkdat
object.
See Also
plot.linkdat
, linkage.power
,
linkageSim
Examples
data(toyped)
x = linkdat(toyped)
x = setAvailable(x, 3:4)
x = swapAvailable(x, 2:3)
x$available
[Package paramlink version 1.1-5 Index]