a_read_file: Read data

Description Usage Arguments Value Examples

View source: R/adt_private.R

Description

Read specific subtable. The default start column is 1. But could be costomized by editing the "dict_tbl" dictionary.

Usage

1
a_read_file(table_code, file_names, dict_src_files, verbose = TRUE)

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).

file_names

List the names of all subtables in the path (all tables should from the same path).

dict_src_files

A path of data file (.csv) of the parameters dictionary. 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_files for more details.

Value

A dataset

Examples

1
2
3
4
## Not run: 
a_read_file("COG", file_names, dict_src_files)

## End(Not run)

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