clean_TI_CCMH_export: Clean TI appointment export file

View source: R/TI_CCMH_export_support_functions.r

clean_TI_CCMH_exportR Documentation

Clean TI appointment export file

Description

@param data A data frame. @param id_var A quoted string to indicate the name of the ID variable if it exist. By default, NULL. @param key A key to rename the columns in the form data file. Default is CCMHr::TI_CCMH_export_forms_key @param included_forms A string or list of strings to indicate the forms that should be included in the data. Options include: "CCAPS", "SDS", "CLICC", "Closure", and "AUDIT". By default, c("CCAPS", "SDS", "CLICC", "Closure", "AUDIT") @param save_individual_form A logical statement indicates whether the individual forms should be saved seperate under a local folder. By default, FALSE @param path_individual_form A quoted string to indicate the path where the individual forms should be saved. By default, "NULL" or saved under the current working directory @param save A logical statement indicates whether the overall data frame should be saved as a file under a local folder. If false, the data will be returned as an object. By default, FALSE @param path A quoted string to indicate the path where the appointment data should be saved. By default, TI_appointment_clean.csv

Usage

clean_TI_CCMH_export(
  data,
  id_var = NULL,
  key = CCMHr::TI_CCMH_export_forms_key,
  included_forms = c("CCAPS", "SDS", "CLICC", "Closure", "AUDIT"),
  save_individual_form = FALSE,
  path_individual_form = NULL,
  save = FALSE,
  path = "TI_CCMH_export_clean.csv"
)

Value

A data frame with cleaned TI exported data forms.


CCMH-PSU/CCMHr documentation built on Jan. 11, 2025, 4:36 p.m.