Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

setAvailable

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 linkdat object

available

a numeric containing the IDs of available individuals.

ids

the individual(s) whose availability status should be swapped.

Value

The modified linkdat object.

Author(s)

Magnus Dehli Vigeland

See Also

Examples

data(toyped)
x = linkdat(toyped)
x = setAvailable(x, 3:4)
x = swapAvailable(x, 2:3)
x$available

paramlink

Parametric Linkage and Other Pedigree Analysis in R

v1.1-2
GPL (>= 2)
Authors
Magnus Dehli Vigeland [aut, cre], Thore Egeland [ctb], Guro Doerum [ctb]
Initial release
2018-01-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.