Description Usage Arguments Details Value Author(s) Examples
The function generates for each person lists of maternal half-sibs, paternal half-sibs and full sibs. Optionally these are expanded to separate columns in a data.table.
1 |
obj |
A 3-column structure with column names |
ns |
Integer. The maximal no of sibs of each type to include in the result if sibling ids are required in separate columns. |
expand.vars |
Logical. Should the sibling ids be returned in separate
columns. If |
There are no checks of persons being both mother and father, nor being its
own parent and incest checks are not performed. In other words, the
obj is assumed to be sane, but possibly immoral.
A data.table with the columns of the obj and columns
for ns maternal, paternal and full sibs, named ms1,
ms2, ... ps1, ps2, ... fs1,
fs2.
If expand.vars=FALSE there will instead be three columns of lists
named msibs, psibs and fsibs.
Claus Thorn Ekstrøm, ekstrom@sund.ku.dk, Bendix Carstensen, b@bxc.dk
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.