check_linelist_dates: Check and Clean Dates in a Linelist

View source: R/check.R

check_linelist_datesR Documentation

Check and Clean Dates in a Linelist

Description

check_linelist_dates() checks a linelist with collection and report dates for errors and logical inconsistencies. It removes observations that fail these tests.

Usage

check_linelist_dates(
  .data,
  .collection_date = "collection_date",
  .report_date = "report_date",
  today = Sys.Date(),
  quiet = FALSE
)

Arguments

.data

A linelist with one case/test per row

.collection_date

A Date column corresponding to the date of sample collection

.report_date

A Date column corresponding to the date the sample was reported

today

The Date to consider as "today"

quiet

Should messages be shown for each checking and removal step?

Value

The checked and cleaned linelist


jesse-smith/coviData documentation built on Jan. 14, 2023, 11:08 a.m.