to_json_redcap: Convert a Data Frame to JSON for Upload to REDcap

Description Usage Arguments Value

View source: R/redcap-conversion.R

Description

to_json_redcap() uses toJSON() to convert a data frame to a JSON object for import into REDcap. It checks that the size of the resultin object does not exceed size_limit, which (by default) is 90% of the maximum allowed upload size in the Shelby County REDcap.

Usage

1
to_json_redcap(.data, size_limit = as.integer(0.9 * 3.2e+07), ...)

Arguments

.data

A data frame or data frame extension

size_limit

The maximum allowed size of the resulting JSON object

...

Additional arguments to pass to toJSON()

Value

A json character object


jesse-smith/covidassign documentation built on Aug. 23, 2021, 12:59 a.m.