Description Usage Arguments Examples
This function returns the relatedness coefficient between two individuals of a given pedigree.
1 |
ped |
Pedigree object for individuals 1 and 2 |
x |
ID of individual 1 |
y |
ID of individual 2 |
1 2 3 | exmpl_df <- get_exmpl_df()
ped <- with(exmpl_df, kinship2::pedigree(id, dadid, momid, sex, affected, status))
r_val(ped, exmpl_df$id[1], exmpl_df$id[2])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.