coerce_life_table_age_sex: Coerce to a 'life_table_age_sex'

coerce_life_table_age_sexR Documentation

Coerce to a life_table_age_sex

Description

These functions coerce an object to a life_table_age_sex if possible, or check if it is one.

Usage

as_life_table_age_sex(x, ...)

## Default S3 method:
as_life_table_age_sex(x, ...)

## S3 method for class 'data.frame'
as_life_table_age_sex(x, ...)

## S3 method for class 'matrix'
as_life_table_age_sex(x, ...)

## S3 method for class 'life_table_age_sex'
as_life_table_age_sex(x, ...)

is_life_table_age_sex(x)

Arguments

x

An object to coerce or check.

...

Further arguments passed to specific methods.

Value

A coerced object in the case of the as_... functions; a logical for the is_... functions.

Author(s)

Mark Wheldon

See Also

coerce_demog_change_component_df


markalava/ccmppWPP documentation built on April 21, 2022, 12:36 a.m.