View source: R/docsRecordsManagementMethods.R
recordsManagementMethods | R Documentation |
These methods enable the user to get the next record name (when auto numbering is enabled) or rename and existing record.
exportNextRecordName(rcon, ...)
renameRecord(rcon, record_name, new_record_name, arm = NULL, ...)
## S3 method for class 'redcapApiConnection'
exportNextRecordName(rcon, ...)
## S3 method for class 'redcapApiConnection'
renameRecord(rcon, record_name, new_record_name, arm = NULL, ...)
rcon |
A |
record_name |
|
new_record_name |
|
arm |
|
... |
Arguments to pass to other methods |
exportNextRecordName
returns an integerish value. The value is
determined by looking up the highest record ID number in the
project and incrementing it by 1.
renameRecord
invisibly returns a logical value that indicates if the
operation was successful. Otherwise, an error is thrown.
exportNextRecordName()
: Get the ID number for the next record to be created.
renameRecord()
: Rename an existing record.
exportRecords()
,
exportReports()
,
importRecords()
,
deleteRecords()
,
exportRecordsTyped()
,
exportReportsTyped()
## Not run:
unlockREDCap(connections = c(rcon = "project_alias"),
url = "your_redcap_url",
keyring = "API_KEYs",
envir = globalenv())
# Get the next record name
exportNextRecordName(rcon)
# Rename an existing record
renameRecord(rcon,
record_name = "1",
new_record_name = "42")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.