View source: R/check_queries.R
check_queries | R Documentation |
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.
check_queries(old, new, report_title = NULL)
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. |
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.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.