View source: R/LFSTestingCriteria.R
secondDegreeRelative | R Documentation |
Find out the second degree relatives of a given individuals in a family.
secondDegreeRelative(pedigree, ii)
pedigree |
A data frame including ID, fID and mID. These IDs should be positive integers. |
ii |
Individual index (not ID here). If you want to get the second degree relatives of the second individual in the family, set ii as 2. |
The indexes of individuals who are the second degree relatives to the given individual.
Gang Peng
firstDegreeRelative
, lfsClassic
, lfsChompret2009
, lfsChompret2015
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") secondDegreeRelative(pedigree,2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.