getID: Retrieve record_id field name

View source: R/getID.R

getIDR Documentation

Retrieve record_id field name

Description

Gets record_id field name from bundle, or data_dict if provided. Otherwise, the first column name will be used. This is an internal rctools function only.

Usage

getID(
  record_data = NULL,
  data_dict = getOption("redcap_bundle")$data_dict,
  id_field = NULL
)

Arguments

record_data

Dataframe. Record data exported from REDCap

data_dict

Dataframe. REDCap project data data_dictionary

id_field

Character. Field name corresponding to the 'record_id' field.

Author(s)

Marcus Lehr


chillywings/rctools documentation built on Aug. 9, 2024, 11:52 p.m.