Learn R Programming

MoBPS (version 1.13.1)

set.time.point: Set time point

Description

Function to set time point of birth for individuals

Usage

set.time.point(
  population,
  database = NULL,
  gen = NULL,
  cohorts = NULL,
  time.point = 0
)

Value

Population-List with newly entered time points

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)

time.point

Input value for the time point (time the cohort of the individual was generated) (default: 0)

Examples

Run this code
data(ex_pop)
population <- set.time.point(ex_pop, database=cbind(1,1), time.point = 2)

Run the code above in your browser using DataLab