edit_day0_child_ids_spa_sco: Edit incorrect child IDs based on Day 0 data correction in...

View source: R/clean_timci_data.R

edit_day0_child_ids_spa_scoR Documentation

Edit incorrect child IDs based on Day 0 data correction in SPA observation entries (TIMCI-specific function)

Description

This function can be used to correct documented child ID duplicates, incorrect facility codes, or typos in Day 0 data entries. It reads in a CSV file containing corrections and applies them to the input dataframe.

Usage

edit_day0_child_ids_spa_sco(df, csv_prefix = "day0_duplicate_correction")

Arguments

df

A dataframe containing the Day 0 data entries to be corrected.

csv_prefix

A string value indicating the prefix of the CSV file from which to read the corrections (default is "day0_duplicate_correction").

Value

A list containing the edited dataframe and the list of applied corrections.


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