select | R Documentation |
The function selects individuals from a population based on the phenotypic values,
the selection may be in the direction of the highest, lowest or random values.
select(pop,N,level,gen,method,pheno,percentage,im_type)
pop |
Required: An input haplotype object |
N |
Required: Number of individuals to be selected |
level |
Required: the level of selection |
method |
Required: a method of selection: random, top, or bottom |
pheno |
Required: a phenotyping data, it is required with top or bottom methods |
percentage |
optional: TRUE if N is percentage of a population |
im_type |
Optional: the type of images, default is svg |
file |
Optional: the output file path, default is current directory |
A haplotype object of the selected individuals
haplotype_sub1 = select(haplotype,1,0,,method="random",phenotypes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.