Checks whether the age vector meets conditions for a full series.
dd_series_isfull(data, abridged = TRUE)
The dataset to be harmonized
Whether the data is abridged or not. If the data contains 5-year age labels, abridged == TRUE
TRUE/FALSE
. TRUE if the series is full and FALSE otherwise
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.
if (FALSE) {
df <- series_isfull_df
dd_series_isfull(df, abridged = TRUE)
}