View source: R/import_records.R
import_records | R Documentation |
Import records into a REDCap project
import_records(
conn,
data,
type = c("flat", "eav"),
overwrite = "normal",
return = "count"
)
conn |
A REDCap API connection object (created with |
data |
A data.frame containing record data to import into REDCap |
type |
One of:
|
overwrite |
Overwrite behaviour. Either "normal" to prevent missing values from overwriting data, or "overwrite" to allow data to be overwritten with missing values. Defaults to "normal". |
return |
What to return. Use "count" to return a count of imported records, "ids" to return a vector of the IDs that were imported, or "nothing" to return nothing. Defaults to "count". |
Depends on argument return
. Either a count of imported records, a vector of
record IDs, or nothing.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.