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 Sept. 11, 2024, 7:13 p.m.