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

View source: R/getDyads_or_Triads.R

create.missingness.matrixR Documentation

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

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

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.

Value

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


Haplin documentation built on May 20, 2022, 5:07 p.m.