Learn R Programming

pedtools (version 2.8.0)

newPed: Internal ped constructor

Description

This is the internal constructor of ped objects. It does not do any validation of input other than simple type checking. In particular it should only be used in programming scenarios where it is known that the input is a valid, connected pedigree. End users are recommended to use the regular constructor ped().

Usage

newPed(ID, FIDX, MIDX, SEX, FAMID, detectLoops = TRUE)

Value

A ped object.

Arguments

ID

A character vector.

FIDX

An integer vector.

MIDX

An integer vector.

SEX

An integer vector.

FAMID

A string.

detectLoops

A logical.

Details

See ped() for details about the input parameters.

Examples

Run this code

newPed("a", 0L, 0L, 1L, "")

Run the code above in your browser using DataLab