Learn R Programming

redcapAPI (version 2.10.0)

getProjectIdFields: Return a vector of the Project ID Fields

Description

Returns a character vector listing the project ID fields. This will be at most a vector of length two. The first element will be the first field in the meta data. The second, if provided, will be the name of the secondary unique field specified in the project.

Usage

getProjectIdFields(rcon)

Value

Returns a character vector with the field names that uniquely identify an experimental unit.

Arguments

rcon

A redcapConnection object.

Examples

Run this code
if (FALSE) {
unlockREDCap(connections = c(rcon = "project_alias"), 
             url = "your_redcap_url", 
             keyring = "API_KEYs", 
             envir = globalenv())
             
getProjectIdFields(rcon)
}

Run the code above in your browser using DataLab