Description Usage Arguments Value See Also Examples
This function extracts data based on the request forms users
have filled and saved in the request_output
folder of selected
research folder.
1 2 3 4 5 6 7 8 9 10 11 12 |
wkdir |
The path to working directory. See |
research.folder |
The name of research folder. See
|
inclusion.xls.file |
Name(s) of request form(s) with inclusion criterion. Multiple request forms should be specified as a character vector. |
variable.xls.file |
Name(s) of request form(s) with variable lists.
Multiple request forms should be specified as a character vector. Default
is |
database |
Name of database. Should be either |
dataLogic |
Whether to take |
select.output |
|
overwrite |
Whether to overwrite existing request form. Default is
|
username |
User name for accessing database if |
password |
Password for accessing database if |
conn_string |
Connection string for accessing ORE server. Default is
|
Returns a list of identifier variables, path to the Excel file with
summary statistics, extracted data and merged data, if any of these are
selected with selected.output
. These are also written as csv
files in research/[research folder]/request_output
folder.The
summary.xls
is returned. The summary.xls
will includes count
summary sheet and variable summary sheet.
1 2 3 4 5 6 7 | ## Not run:
extract_data(wkdir = "Working directory", research.folder = "requestnum001",
inclusion.xls.file = "inclusion.Diagnosis_DIAGNOSIS_CD(DIAGNOSIS_DESC_ICD_VERSION)",
variable.xls.file = "variable.Patient(PATIENT_NRIC)",
select.output = c(1, 2, 4))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.