Import a .fam or .ped file and return a Pedigree object
Usage
plink_to_pedigree(
path,
sep = "\t",
quote = "'",
header = FALSE,
na_values = c("NA", "0")
)
Examples
write.table(
data.frame(
famid = c("1", "1", "1"),
id = c("A", "B", "C"),
dadid = c(0, 0, "A"),
momid = c(0, 0, "B"),
sex = c(1, 2, 1)
), file = "test.fam", sep = "\t", quote = FALSE,
row.names = FALSE, col.names = FALSE
)
fam <- "test.fam"
pedi <- plink_to_pedigree(fam)