Learn R Programming

Mega2R (version 1.0.2)

mkfam: assemble pedigree information into a data frame

Description

Generate a data frame with a row for each person. The observations are:

pedigree family pedigree name
person person name
father father of person
mother mother of person
sex sex of person

Usage

mkfam(brkloop = FALSE, traitname = "default", envir = ENV)

Arguments

brkloop

I haven't needed to set this TRUE yet. Maybe never will. If loops are broken, a person will be replaced by a dopple ganger in the same family with a different father/mother. The number of persons per family will be different when there are broken loops. Also, the person_link numbers will be different for all the persons after the first loop is broken.

traitname

name for trait to use as case/control value; by default, "default"

envir

an 'environment' that contains all the data frames created from the SQLite database.

Value

data frame that is described above

Examples

Run this code
# NOT RUN {
db = system.file("exdata", "seqsimm.db", package="Mega2R")
ENV = read.Mega2DB(db)

fam = mkfam()

fam

# }

Run the code above in your browser using DataLab