Learn R Programming

kinship2 (version 1.9.6.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)

Value

An integer vector giving family groupings

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.

Author

Terry Therneau

Details

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

See Also

makekinship