get.sex: Extraction of individual sex

View source: R/get.sex.R

get.sexR Documentation

Extraction of individual sex

Description

Function to extract the sex of selected individuals

Usage

get.sex(
  population,
  database = NULL,
  gen = NULL,
  cohorts = NULL,
  id = NULL,
  use.id = TRUE,
  male.female.coding = F
)

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

male.female.coding

Set to TRUE to display male/female instead of 1/2

Examples

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

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

Related to get.sex in MoBPS...