firstDegreeRelative {LFSPRO}R Documentation

First degree relatives

Description

Find out the first degree relatives of a given individuals in a family.

Usage

firstDegreeRelative(pedigree, ii)

Arguments

pedigree

A data frame including ID, fID and mID. These IDs should be a positive integer.

ii

Individual index (not ID here). If you want to get the first degree relatives of the second individual in the family, set ii as 2.

Value

The index of individuals who are the first degree relatives to the given individual.

Author(s)

Gang Peng

See Also

secondDegreeRelative, LFSClassic, LFSChompret

Examples

fam.cancer.data <- CombineData(fam.data, cancer.data)
lfsData <- reformatForClassicChompret(fam.cancer.data[[1]])
pedigree <- data.frame(lfsData$ID,lfsData$fID,lfsData$mID,stringsAsFactors=FALSE)
names(pedigree) <- c("ID","fID","mID")
firstDegreeRelative(pedigree,2)

[Package LFSPRO version 1.0.5 Index]