haploList {HaploSim} | R Documentation |
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)
Arguments
list |
List of objects of class |
hList |
Object of class |
nDec |
Number of decimal positions of new object. |
genDist |
Genome size of new object measured in Morgan. |
nChrom |
Number of chromosomes. |
Value
An object of class 'haploList'
. If list
is not NULL,
object of filled with objects of class 'haplotype'
.
See Also
Examples
hList <- haploList(nDec= 1,genDist = 1)
validhaploListObject(hList)
[Package HaploSim version 1.8.4.2 Index]