nda | R Documentation |
This function processes requests for clean data sequentially for specified measures. It makes a request to the NIH NDA API for the named data structures and runs the associated data remediation routines. It then runs a series of unit tests to verify that the data quality standards are met.
nda(
...,
csv = FALSE,
rdata = FALSE,
spss = FALSE,
limited_dataset = FALSE,
skip_prompt = FALSE
)
... |
Strings, specifying the measures to process, which can be a Mongo collection, REDCap instrument, or Qualtrics survey. |
csv |
Optional; Boolean, if TRUE creates a .csv extract in ./tmp. |
rdata |
Optional; Boolean, if TRUE creates an .rdata extract in ./tmp. |
spss |
Optional; Boolean, if TRUE creates a .sav extract in ./tmp. |
limited_dataset |
Optional; Boolean, if TRUE does not perform date-shifting of interview_date or age-capping of interview_age |
skip_prompt |
Logical. If TRUE, skips confirmation prompts. If FALSE (default), prompts for confirmation unless the user has previously chosen to remember their preference. |
Prints the time taken for the data request process.
Joshua Kenney joshua.kenney@yale.edu
## Not run:
nda("prl", csv=TRUE)
nda("rgpts", "kamin", rdata=TRUE)
# Skip confirmation prompts
nda("prl", csv=TRUE, skip_prompt=TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.