detect_inconsistent_dates: Detect inconsistent dates (TIMCI-specific function)

View source: R/check_timci_quality.R

detect_inconsistent_datesR Documentation

Detect inconsistent dates (TIMCI-specific function)

Description

Detect inconsistent dates (TIMCI-specific function)

Usage

detect_inconsistent_dates(
  df,
  col_date_start,
  col_date_end,
  cleaning = "none",
  list_of_cols = c(),
  date_format = "%Y-%m-%d %T"
)

Arguments

df

dataframe containing the processed facility data

col_date_start

column

col_date_end

column

cleaning

type of cleaning to be performed on inconsistent dates, by default set to "none" (i.e., no cleaning following the identification of inconsistent dates)

list_of_cols

list of columns to be exported if needed (default is set to an empty vector)

date_format

format of the date

Value

This function returns a dataframe containing data of possible duplicate participants only


Thaliehln/timci documentation built on April 8, 2024, 3:38 p.m.