Creates a data.frame that help batching long-running read and writes.
The function returns a
data.frame that other functions use to separate long-running
read and write REDCap calls into multiple, smaller REDCap calls. The goal is to (1) reduce the chance of time-outs,
and (2) introduce little breaks between batches so that the server isn't continually tied up.
The number records in the large dataset, before it's split.
The maximum number of subject records a single batch should contain.
This function can also assist splitting and saving a large
data.frame to disk as smaller files (such as a .csv).
The padded columns allow the OS to sort the batches/files in sequential order.
data.frame is returned with the following columns,
integerthat uniquely identifies the batch, starting at
start_index: the index of the first row in the batch.
stop_index: the index of the last row in the batch.
id, but padded with zeros.
start_index, but padded with zeros.
stop_index, but padded with zeros.
redcap_read for a function that uses
1 2 3 4 5 6 7 8 9 10
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.