a_check_src: Check the source data whether include all the variable needed

Description Usage Arguments Value Examples

View source: R/adt_private.R

Description

Check the source data whether include all the variable needed

Usage

1
a_check_src(table_code, cur_dat, dict_src_tables)

Arguments

table_code

Code of subtables ("Cognitive" as "COG"), which can be mapped to the source data files and is used for internal data manipulation. The options are "COG" (Cognitive), "DIAG" (Diagnosis), "CSF" (FINAL_CSF), "DEMO" (Demographics), "HIPPO" (Hippocampus), "AMY" (Amygdala), "EC" (Entorhinal), "GE" (Genetics), "LIST_A" (list of patients not enrolled), "LIST_B" (list of patients impaired).

cur_dat

A dataset indicating current loaded subtable.

dict_src_tables

A dictionary file for the parameters. The default dictionary is appended in the package. Since the parameters in tables may vary, it could be modified by using a costomized parameter dictionary. The format can refer to the appended dictionary. See dict_src_tables for more details.

Value

A dataset includes missing variables information.

Examples

1
2
3
4
## Not run: 
a_check_src("DIAG", dict_src_tables, dat_diag)

## End(Not run)

olssol/ADTool documentation built on Feb. 12, 2021, 3:49 a.m.