Skip to contents

This function returns a record-level table of all inconsistent and "date missing" entries, including the day difference between the two dates.

Usage

dcc_inconsistent(data.EIR, date_1, date_2, birth_cohorts = NULL)

Arguments

data.EIR

Data frame. A data frame containing individual vaccination records. See immunABC.EIR for expected structure.

date_1

Character. The name of a DATE formatted variable present in the EIR. This variable is the date we are checking for consistency.

date_2

Character. The name of a DATE formatted variable present in the EIR. This variable is the date we are checking consistency against. Represents a date chronologically earlier than date_1.

birth_cohorts

Numeric (optional). A vector specifying the birth cohort(s) for which inconsistent records should be returned. If NULL (default), all available cohorts are used.

Value

A data frame containing the inconsistent records in the database and the time diferential between them.