ped2kinpair | R Documentation |
Converts a pedigree class object from fam2ped to a pairwise list of relationships and their expected/theoretical kinship coefficient.
ped2kinpair(ped)
ped |
A "pedigree" class object from fam2ped. |
A tibble containing all pairwise kinship coefficients from the input pedigree.
famfile <- system.file("extdata", "3gens.fam", package="skater", mustWork=TRUE) famfile %>% read_fam() %>% fam2ped() %>% dplyr::mutate(kinpairs=purrr::map(ped, ped2kinpair)) %>% dplyr::select(fid, kinpairs) %>% tidyr::unnest(cols=kinpairs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.