getFullTriads {Haplin}R Documentation

Getter for all full triads

Description

Wrapper function for genDataGetPart that returns a subset of the data containing only full triads (where all, the child, the mother and the father have genetic data).

Usage

getFullTriads(
  data.in = stop("No data given!", call. = FALSE),
  file.out = "my_data_onlyTriads",
  dir.out = ".",
  overwrite = NULL
)

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.

file.out

The base for the output filename (default: "my_data_onlyTriads").

dir.out

The path to the directory where the output files will be saved.

overwrite

Whether to overwrite the output files: if NULL (default), will prompt the user to give answer; set to TRUE, will automatically overwrite any existing files; and set to FALSE, will stop if the output files exist.

Value

A list object with three elements:

This now contains only the selected subset of data.


[Package Haplin version 7.3.1 Index]