Skip to contents

Create a single row in the redcap_randomization table that mirrors that in another project.

Usage

create_randomization_row(
  source_conn,
  target_conn,
  source_project_id,
  target_project_id
)

Arguments

source_conn

- a DBI connection object pointing at the REDCap database that houses the source project.

target_conn

- a DBI connection object pointing at the REDCap database that houses the target project.

source_project_id

- The project ID of the REDCap project that contains randomization to be cloned.

target_project_id

- The project ID of the REDCap project that will receive the mirrored randomization data.

Value

- A dataframe containing the current randomization row for the target project.

Examples

if (FALSE) { # \dontrun{
target_project_randomization_state <- create_randomization_row(
  source_conn = source_conn,
  target_conn = target_conn,
  source_project_id = source_project_id,
  target_project_id = target_project_id
)
} # }