Description Usage Arguments Value Author(s) Examples
Create a vector of length n, giving the family id 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 each have unique family numbers.
No check is done to ensure that the id, fid, and mid actually refer to proper family structure. References to ids in the fid and mid arguments that are not part of the id vector are considered founders.
1 | make_family_id(id, fid, mid)
|
id |
Numeric vector of ids |
fid |
Numeric vector of ids of the father. This should be NA or 0 for a founder. |
mid |
Numeric vector of ids of the mother. This should be NA or 0 for a founder. |
Returns an integer vector giving the family index
Claus Ekstrom ekstrom@sund.ku.dk
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.