Learn R Programming

Haplin (version 7.3.2)

nindiv: Count the number of individuals in the data

Description

This is a help function to count the number of individuals in an object read in with genDataRead (or loaded with genDataLoad).

Usage

nindiv(data.in, design = "triad")

Value

How many individuals (integer).

Arguments

data.in

The data read in by genDataRead.

design

The design used in the study - choose from:

  • triad (default) - data includes genotypes of mother, father and child;

  • cc - classical case-control;

  • cc.triad - hybrid design: triads with cases and controls