Running data validation queries from generate_queries() with queryr::query_vec() requires specifying the join_by columns for queries that relate to more than one REDCap form.
Often the join_by column will just be the record ID column, but certain queries may require also joining by redcap_event_name and/or redcap_repeat_instance. Consider adding a "join_by" column to the output from generate_queries() that infers the relevant join column(s) associated with each query.
Running data validation queries from
generate_queries()
withqueryr::query_vec()
requires specifying the join_by columns for queries that relate to more than one REDCap form.Often the join_by column will just be the record ID column, but certain queries may require also joining by redcap_event_name and/or redcap_repeat_instance. Consider adding a "join_by" column to the output from
generate_queries()
that infers the relevant join column(s) associated with each query.