test_demog_change_component_dims | R Documentation |
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.
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)
x |
An object to test. |
TRUE
or FALSE
depending on the result.
Mark Wheldon
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.