life.years.lived: A function that returns the total number of life-years lived...

Description Usage Arguments Value Examples

View source: R/life.years.lived.R

Description

A function that returns the total number of life-years lived between two points in simulation time for a particular age group and gender

Usage

1
2
life.years.lived(datalist = datalist, agegroup = c(15, 30),
  timewindow = c(15, 30), site = "All")

Arguments

datalist

The datalist that is produced by readthedata

agegroup

alive people within this agegroup.

timewindow

alive people within this simulation time e.g timewindow = c(15, 30).

site

Select only the particular site from the study, if all ignore site/use all sites.

Value

the total number of life-years lived aggregated by gender.

Examples

1
2
3
4
data(datalist)
life.years.lived <- life.years.lived(datalist = datalist, agegroup=c(15, 30),
timewindow=c(15, 30), site="All")
life.years.lived

wdelva/RSimpactHelp documentation built on Dec. 26, 2019, 3:42 a.m.