id_first_data {dbGaPCheckup} | R Documentation |
This utility function reorders the data set so that SUBJECT_ID comes first.
id_first_data(DS.data)
DS.data |
Data set. |
SUBJECT_ID is required to be the first column of the data set and first variable listed in the data dictionary.
Updated data set with SUBJECT_ID as first column.
data(ExampleQ)
head(DS.data.Q)
DS.data.updated <- id_first_data(DS.data.Q)
head(DS.data.updated)