newPed {pedtools}R Documentation

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)

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.

Value

A ped object.

Examples


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


[Package pedtools version 2.7.0 Index]