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

findAvailAffected

Find a single person to trim from a pedigree whose is available


Description

Finds one subject from among available non-parents with indicated affection status

Usage

findAvailAffected(ped, avail, affstatus)

Arguments

ped

A pedigree objects, with id (subject ID), findex (father index), mindex (mother index)

avail

Vector of availability status (e.g., genotyped) 0/1 or TRUE/FALSE

affstatus

Vector of affection status 0/1 or TRUE/FALSE.

Details

When used within pedigree.shrink, this function is called with the first affected indicator, if the affected item in the pedigree is a matrix of multiple affected indicators.

Value

A list is returned with the following components

ped

Dataframe with trimmed subject removed

idTrimmed

Vector of IDs of trimmed individuals

isTrimmed

logical value indicating whether pedigree has been trimmed

bitSize

Bit size of the trimmed pedigree

See Also


kinship2

Pedigree Functions

v1.8.5
GPL (>= 2)
Authors
Jason Sinnwell [aut, cre], Terry Therneau [aut], Daniel Schaid [ctb], Elizabeth Atkinson [ctb], Carly Mester [ctb]
Initial release
2019-5-31

We don't support your browser anymore

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