Description Usage Arguments Details Value See Also Examples
This function generates a request form containing a list of variables available in a particular key variable in a dataset selected, based on which users can select variables to extract for data extraction.
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
|
table_name |
The name of dataset. File extension must be included if the data is saved as a flat file instead of in a database, e.g. 'data.csv' should be given instead of simply 'data'. |
data.type |
|
database |
Name of database. Should be either |
identifier.var |
The name(s) of identifier variable(s) of the variable list. Multiple identifier variables should be specified as a character vector. |
omit.var |
The name(s) of variables in the dataset to exclude from the
variable list, if any. |
overwrite |
Whether to overwrite existing request form. Default is
|
username |
User name for accessing database if |
password |
Password for accessing database if |
Writes an .xls
file with two sheets to
public_data_template
if lining to database, and to either
public_data_template
or private_data_template
depending on
database
for flat tables.
The first sheet overall list
contains unique values of key variable
with description (if key.desc
is specfied and exists in the table),
remarks and selection. This sheet will be used to specify inclusion criteria
for data extraction in later steps.
The second sheet setting list
contains detailed information about
the database.
Returns the name of variable list generated. See details
.
1 2 3 4 5 6 7 8 | ## Not run:
genVariable(wkdir = "Working directory", research.folder = "requestnum001",
table_name = "table_demographic.txt",
data.type = "flat", database = "public",
identifier.var = "PATIENT_NRIC",
omit.var = c("PATIENT_NRIC", "NATIONALITY", "POSTAL_CODE"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.