Learn R Programming

MoBPS (version 1.6.64)

get.creating.type: Derive creating type

Description

Function to devide creating type for each individual

Usage

get.creating.type(
  population,
  database = NULL,
  gen = NULL,
  cohorts = NULL,
  use.id = 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)

use.id

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

Value

Creating type of in gen/database/cohorts selected individuals

Examples

Run this code
# NOT RUN {
data(ex_pop)
get.creating.type(ex_pop, gen=2)
# }

Run the code above in your browser using DataLab