find_best_matched_names_between_fu_and_day0: Detects matched names between follow-up and day 0 dataframes...

find_best_matched_names_between_fu_and_day0R Documentation

Detects matched names between follow-up and day 0 dataframes (TIMCI-specific function).

Description

This function searches for matched names between a follow-up dataframe and a day 0 dataframe. It returns a list containing two dataframes: one with quality control information, and another one with cleaned data.

Usage

find_best_matched_names_between_fu_and_day0(
  df,
  day0_df,
  col_date,
  col_name,
  ldate_diff = 0,
  udate_diff = 0
)

Arguments

df

Follow-up dataframe to search for matched names.

day0_df

Day 0 dataframe to search for matched names.

col_date

Name of the column containing the date in the 'df' dataframe.

col_name

Name of the column containing the name in the 'df' dataframe.

ldate_diff

Lower date difference (default is same day), negative numbers indicate a difference in the past, positive numbers indicate a difference in the future.

udate_diff

Upper date difference (default is same day), negative numbers indicate a difference in the past, positive numbers indicate a difference in the future.

Value

A list with two dataframes: qc_df and cleaned_df.


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