pop_count_age_sex_reference: Constructor for class 'pop_count_age_sex_reference'

View source: R/S3_classes_demog_change_component_pop_count_reference.R

pop_count_age_sex_referenceR Documentation

Constructor for class pop_count_age_sex_reference

Description

pop_count_age_sex_reference is a subclass of demog_change_component_df. It imposes two additional conditions:

  1. time_span attribute equals 0.

  2. value_type attribute equals “count”.

Usage

pop_count_age_sex_reference(x, value_scale = attr(x, "value_scale"))

Arguments

x

An object for which a method is defined (see “Details”).

value_scale

Numeric scalar indicating the value_scale of the counts, e.g., 1, 1000, 1e6, etc.

Details

Methods are defined for data.frames and possibly other objects as well. The data.frame method “constructs” an object from x.

Value

An object of class pop_count_age_sex_reference.

Author(s)

Mark Wheldon

See Also

validate_ccmppWPP_object for object validation, demog_change_component_df for the class from which this one inherits.


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