Create a data frame containing all data to be reviewed. Selects the latest edit date-time for every event/item.
Usage
get_review_data(
data,
common_vars = c("subject_id", "event_name", "item_group", "form_repeat", "item_name"),
date_var = "event_date",
edit_time_var = "edit_date_time"
)
Arguments
- data
A data frame, commonly raw data merged with meta data.
- common_vars
A character vector with the common variable column names. Assumes that these variables can identify a unique data point that needs to be reviewed.
- date_var
A character vector with the name of the date column.
- edit_time_var
A character vector with the name of the edit date-time column.