Learn R Programming

kinship2 (version 1.3.1)

makefamid: Construct a family id from pedigree information

Description

Create a vector of length n, giving the family "tree" number of each subject. If the pedigree is totally connected, then everyone will end up in tree 1, otherwise the tree numbers represent the disconnected subfamilies. Singleton subjects give a zero for family number.

Usage

makefamid(id, father.id, mother.id)

Arguments

id
Identifier for each subject in the set of pedigrees
father.id
Identifier for the father. This will be 0 or "" for a founder.
mother.id
Identifer for the mother.

Value

  • An integer vector giving family groupings

Details

This command is depricated. The kinship command now can be applied directly to pedigreeList objects.

See Also

makekinship