select: select

View source: R/select.R

selectR Documentation

select

Description

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.

Usage

select(pop,N,level,gen,method,pheno,percentage,im_type)

Arguments

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

Value

A haplotype object of the selected individuals

Examples

haplotype_sub1 = select(haplotype,1,0,,method="random",phenotypes)

USDA-ARS-GBRU/crossword documentation built on April 5, 2023, 7:29 p.m.