get.is.last: Last copy

View source: R/get.is.last.R

get.is.lastR Documentation

Last copy

Description

Function to derive if an individual is the last copy of itself in the database (based on position)

Usage

get.is.last(
  population,
  database = NULL,
  gen = NULL,
  cohorts = NULL,
  id = NULL,
  use.id = TRUE,
  keep.order = FALSE
)

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)

keep.order

To not change order of individuals when ids are provided (default: FALSE)

Value

Logical vector

Examples

data(ex_pop)
get.is.last(ex_pop, gen=2)

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

Related to get.is.last in MoBPS...