get.selectionindex: Export underlying last used selection index

View source: R/get.selectionindex.R

get.selectionindexR Documentation

Export underlying last used selection index

Description

Function to export last used selection index (mostly relevant for Miesenberger 1997 stuff)

Usage

get.selectionindex(
  population,
  database = NULL,
  gen = NULL,
  cohorts = NULL,
  id = NULL,
  use.id = TRUE
)

Arguments

population

Population list

database

Groups of individuals to consider for the export

gen

Quick-insert for database (vector of all generations to export)

cohorts

Quick-insert for database (vector of names of cohorts to export)

id

Individual IDs to search/collect in the database

use.id

Set to TRUE to use MoBPS ids instead of Sex_Nr_Gen based names (default: TRUE)

Value

Last applied selection index for in gen/database/cohorts selected individuals

Examples

data(ex_pop)
get.selectionindex(ex_pop, gen=2)

MoBPS documentation built on Nov. 5, 2025, 6:26 p.m.