check_repeat_and_nonrepeat function

Check for instruments that have both repeating and non-repeating structure

Check for instruments that have both repeating and non-repeating structure

Check for potential instruments that are given both repeating and nonrepeating structure. REDCapTidieR does not support database structures built this way.

check_repeat_and_nonrepeat(db_data, call = caller_env())

Arguments

  • db_data: The REDCap database output generated by REDCapR::redcap_read_oneshot()$data
  • call: the calling environment to use in the error message

Returns

A helpful error message alerting the user to existence of an instrument that was designated both as repeating and non-repeating.