# death_table

From IBMPopSim v0.3.0
by Daphnc3 Giorgi

##### Creates a death table.

Creates a death table from a population data frame.
For each `i=1..N-1`

and `j=1..M`

, the number of individuals with age at last birthday in `[ages[i],ages[i+1])`

and died in `[times[j],times[j+1])`

is computed.

##### Usage

`death_table(population, ages, period)`

##### Arguments

- population
Population data frame containing at least

`'birth'`

and`'death'`

columns.- ages
A vector of size

`N`

composed of age groups. The function computes the number of death in each age group`[ages[i],ages[i+1])`

, for`i=1..N-1`

.- period
A vector of size

`M`

composed of time intervals.

##### Details

The function computes the number of death in each time interval `[times[j],times[j+1])`

, `j=1..M`

.

##### Value

A death table matrix.

##### Examples

```
# NOT RUN {
dth_table <- death_table(EW_pop_out, 0:101, 0:31)
# }
```

*Documentation reproduced from package IBMPopSim, version 0.3.0, License: MIT + file LICENSE*

### Community examples

Looks like there are no examples yet.