View source: R/redcap-metadata-read.R
to_api_array | R Documentation |
Utility function to convert a vector into the array format expected by the some REDCap API calls. It is called internally by REDCapR functions, and is not intended to be called directly.
to_api_array(x, element_names)
x |
A vector to convert to array format. Can be |
element_names |
A string containing the name of the API request parameter for the array. Must be either "fields" or "forms". |
If x
is not NULL
a list is returned with one element for
each element of x in the format:
list(`element_names[0]` = x[1], `element_names[1]` = x[2], ...)
.
If x
is NULL
then NULL
is returned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.