Skip to contents

If the given open age is less that the current open age of the life table, collapse deaths and population counts for higher age groups into the new open age.

Usage

collapse_open_age(lt, open_age, catch_lower_input = FALSE)

Arguments

lt

data.table() representing a single life table to (possibly) collapse.

open_age

New open age interval start.

catch_lower_input

logical() determining if an error should be thrown when the input life table's open age is lower than the given open age.

Value

Life table with new open age interval, or original life table if the original open age is lower than the given open age.