View source: R/missingSummary.R
missingSummary | R Documentation |
Returns a data frame of subject events with missing values.
missingSummary(
rcon,
excludeMissingForms = TRUE,
...,
fixed_fields = REDCAP_SYSTEM_FIELDS
)
## S3 method for class 'redcapApiConnection'
missingSummary(
rcon,
excludeMissingForms = TRUE,
...,
fixed_fields = REDCAP_SYSTEM_FIELDS,
exportRecordsArgs = list(),
error_handling = getOption("redcap_error_handling"),
config = list(),
api_param = list()
)
missingSummary_offline(
records,
meta_data,
excludeMissingForms = TRUE,
fixed_fields = REDCAP_SYSTEM_FIELDS
)
rcon |
A |
excludeMissingForms |
|
... |
Arguments to pass to other methods |
fixed_fields |
|
exportRecordsArgs |
named |
error_handling |
|
config |
A named |
api_param |
A named |
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.
## 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.