Learn R Programming

GeneticsPed (version 1.34.0)

isFounder: Founder and non-founder individuals in the pedigree

Description

isFounder classifies individuals in the pedigree as founders (base) or non-founders (non-base individuals).

Usage

isFounder(x, col=attr(x, ".ascendant"))

Arguments

x
pedigree object
col
character, which columns should be checked, see examples

Value

Details

By definition founders do not have any known ascendants, while the opossite is the case for non-founders i.e. they have at least one known ascendant.

FIXME: any relation with founderGeneSet in GeneticsBase

See Also

Pedigree

Examples

Run this code
  ped <- generatePedigree(nId=5)
  isFounder(ped)
  ## Based only on fathers
  isFounder(ped, col=c("father"))
  ## Works also only on a part of a pedigree
  isFounder(ped[1:5, ])

Run the code above in your browser using DataLab