Learn R Programming

skater (version 0.1.2)

fam2ped: Fam to pedigree

Description

Converts a PLINK-formatted fam file to a pedigree object using kinship2::pedigree.

Usage

fam2ped(fam)

Value

A tibble with new listcol ped containing pedigrees from kinship2::pedigree.

Arguments

fam

A tibble with six columns of PLINK .fam data as read in by read_fam.

Examples

Run this code
famfile <- system.file("extdata", "3gens.fam", package="skater", mustWork=TRUE)
fam <- read_fam(famfile)
fam2ped(fam)

Run the code above in your browser using DataLab