check_group_date_unique: Check observations for uniqueness of grouping variables with...

View source: R/check.R

check_group_date_uniqueR Documentation

Check observations for uniqueness of grouping variables with respect to reference_date and report_date

Description

This function checks that the input data is stratified by reference_date, report_date, and .group. It does this by counting the number of observations for each combination of these variables, and throwing a warning if any combination has more than one observation.

Usage

check_group_date_unique(obs)

Arguments

obs

An object that will be coerce_dtd in place, that contains .group, reference_date, and report_date columns.

See Also

Functions used for checking inputs check_calendar_timestep(), check_group(), check_max_delay(), check_module(), check_modules_compatible(), check_numeric_timestep(), check_observation_indicator(), check_quantiles(), check_timestep(), check_timestep_by_date(), check_timestep_by_group()


seabbs/epinowcast documentation built on Sept. 20, 2024, 2:39 a.m.