nindiv: Count the number of individuals in the data

View source: R/nindiv.R

nindivR Documentation

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")

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

Value

How many individuals (integer).


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