Functions for modifying availability vectors
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.
setAvailable(x, available) swapAvailable(x, ids)
x |
a |
available |
a numeric containing the IDs of available individuals. |
ids |
the individual(s) whose availability status should be swapped. |
The modified linkdat object.
Magnus Dehli Vigeland
data(toyped) x = linkdat(toyped) x = setAvailable(x, 3:4) x = swapAvailable(x, 2:3) x$available
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.