sub-LifeTable-numeric-numeric-method: "["

Description Usage Arguments Details Examples

Description

LifeTable method for subsetting

Usage

1
2
## S4 method for signature 'LifeTable,numeric,numeric'
x[i, j, ..., drop = TRUE]

Arguments

x

object of class LifeTable

i

x_ the first x value to be returned.

j

the x value at which to end the subsetted LifeTable. This value is usually either m_ or t_.

...

not used

drop

not used

Details

The function returns all 'x' values that are applicable to the supplied 'x_' and 't_'. The 'q_x' slot is adjusted for partial years where applicable based on uniform force of mortality.

Examples

1
2
3
4
5
6
7
test <- LifeTable()
test[2.5, 0]
test[2.5, 3.5]
test[2, 3]
test[2.4, 3.2]
test[2.4, 3.1]
test[2.2, 0.1]

merlinoa/diehard3000 documentation built on May 22, 2019, 6:52 p.m.