Learn R Programming

HaploSim (version 1.8.4.2)

haploList: Function to create objects of class 'haploList'

Description

Function to create objects of class 'haploList'. Can eiter copy the attributes of an earlier object of class 'haploList' or create a new 'haploList' object. Function mostly used within other functions.

Usage

haploList(list = NULL,hList = NULL,nDec,genDist,nChrom = 1)

Value

An object of class 'haploList'. If list is not NULL, object of filled with objects of class 'haplotype'.

Arguments

list

List of objects of class 'haplotype'.

hList

Object of class 'haploList'.

nDec

Number of decimal positions of new object.

genDist

Genome size of new object measured in Morgan.

nChrom

Number of chromosomes.

See Also

haplotype, haploList

Examples

Run this code
hList <- haploList(nDec=  1,genDist = 1)
validhaploListObject(hList)

Run the code above in your browser using DataLab