Checks whether the age vector meets conditions for a full series.

dd_series_isfull(data, abridged = TRUE)

Arguments

data

The dataset to be harmonized

abridged

Whether the data is abridged or not. If the data contains 5-year age labels, abridged == TRUE

Value

TRUE/FALSE. TRUE if the series is full and FALSE otherwise

Details

A full series requires all closed age groups and either an open age group or a total. If abridged, then a full series also requires either both abridged child ages or both five-year child ages to be present. You can run getAnywhere(dd_series_isfull) to see the function definition.

Examples

if (FALSE) {
df <- series_isfull_df
dd_series_isfull(df, abridged = TRUE)
}