View source: R/missingSummary.R
missingSummary | R Documentation |
Returns a data frame of subject events with missing values.
missingSummary(rcon, excludeMissingForms = TRUE, ...)
## S3 method for class 'redcapApiConnection'
missingSummary(rcon, excludeMissingForms = TRUE, ...)
missingSummary_offline(records, meta_data, excludeMissingForms = TRUE)
rcon |
A |
excludeMissingForms |
|
... |
additional arguments passed to inner call of exportRecordsTyped. |
records |
|
meta_data |
|
The intention of this function is to generate a list of subject events that are missing and could potentially be values that should have been entered.
The branching logic from the data dictionary is parsed and translated into
and R expression. When a field with branching logic passes the logical
statement, it is evaluated with is.na
, otherwise, it is set to
FALSE
(non-missing, because there was never an opportunity to
provide a value). The utility of this function is limited to simple
logic where all of the
data exist within the same row. Any complex statements using events
will result in a failure.
Optionally, forms that are entirely missing can be determined to be non-missing. This is applicable when, for instance, a patient did not have an adverse event. In this case, a form dedicated to adverse events would contain meaningless missing values and could be excluded from the report.
vignette("redcapAPI-offline-connection", package = "redcapAPI")
## Not run:
unlockREDCap(connections = c(rcon = "project_alias"),
url = "your_redcap_url",
keyring = "API_KEYs",
envir = globalenv())
# Generate a summary of missing values for the entire project
missingSummary(rcon)
# Generate a summary of missing values for a single form
missingSummary(rcon,
exportRecordsArgs = list(forms = "target_form"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.