test_demog_change_component_dims: Test for vital rate dimensions

test_demog_change_component_dimsR Documentation

Test for vital rate dimensions

Description

These functions test whether an object has a particular vital rate dimension. For objects of class demog_change_component_df this uses the attributes. For data frames it merely checks the presence of the appropriate column.

Usage

is_by_time(x)

## S3 method for class 'demog_change_component_df'
is_by_time(x)

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

is_by_age(x)

## S3 method for class 'demog_change_component_df'
is_by_age(x)

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

is_by_sex(x)

## S3 method for class 'demog_change_component_df'
is_by_sex(x)

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

is_by_indicator(x)

## S3 method for class 'demog_change_component_df'
is_by_indicator(x)

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

Arguments

x

An object to test.

Value

TRUE or FALSE depending on the result.

Author(s)

Mark Wheldon


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