check_queries {REDCapDM} | R Documentation |
Check for changes between two reports of the queries
Description
This function compares a previous report of queries with a new one and allows you to check which queries are new, which have been modified, and which remain unchanged.
Usage
check_queries(old, new, report_title = NULL)
Arguments
old |
Previous version of the queries report. |
new |
New version of the queries report. The status of each query is determined using this object. |
report_title |
Character string specifying the title of the report. |
Value
A list consisting of a dataframe with every single query of both reports and a column containing the status of the queries (new, solved, miscorrected or pending) compared to the previous query report. There is also a summary of the total number of queries per category in addition to this dataframe.
Examples
# Example of a query
data_old <- rd_query(covican,
variables = "copd",
expression = "is.na(x)",
event = "baseline_visit_arm_1")
data_new <- rbind(data_old$queries[1:5,], c("100-20",rep("abc",8)))
# Control of queries
check <- check_queries(old = data_old$queries,
new = data_new)
[Package REDCapDM version 0.9.9 Index]