Learn R Programming

MoBPS (version 1.13.1)

set.age.point: Set age points

Description

Function to overwrite age.points of individuals

Usage

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

Value

Population-List with newly entered class values

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 age point (time of birth) of an individual (default: 0)

Examples

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

Run the code above in your browser using DataLab