collapse_vector | R Documentation |
REDCap's API frequently specifies a series of values separated by commas. In the R world, it's easier to keep these values as separate elements in a vector. This functions squashes them together in a single character element (presumably right before the return value is passed to the API)
collapse_vector(elements)
elements |
An array of values. Can be |
A single character element, where the values are separated by
commas. Can be blank. (i.e., ""
).
Will Beasley
library(REDCapR) # Load the package into the current R session.
REDCapR:::collapse_vector(elements = NULL )
REDCapR:::collapse_vector(elements = letters)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.