Learn R Programming

Haplin (version 7.3.2)

f.create.missingness.matrix: Create family matrix of data missingness

Description

Help function that checks the family structure, based on IDs and provided data in .ped file, and then creates a matrix with families, where each indiv. has TRUE/FALSE value, depending on whether they have or not genetic data.

Usage

f.create.missingness.matrix(
  data.in = stop("No data given!", call. = FALSE),
  new.ids = stop("No IDs given", call. = FALSE)
)

Value

A matrix where each member of the family has TRUE or FALSE (whether they have any genetic data)

Arguments

data.in

The data object (in format as the output of genDataRead); note that the design of the data is assumed to be triad.

new.ids

A list with pedIndex and ids, as generated by f.check.unique.ids.