| haploList {HaploSim} | R Documentation |
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.
haploList(list = NULL,hList = NULL,nDec,genDist,nChrom = 1)
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. |
An object of class 'haploList'. If list is not NULL,
object of filled with objects of class 'haplotype'.
hList <- haploList(nDec= 1,genDist = 1) validhaploListObject(hList)