id_first_dict {dbGaPCheckup}R Documentation

Relocate SUBJECT_ID to First Column of Data Dictionary

Description

This utility function reorders the data dictionary so that SUBJECT_ID comes first.

Usage

id_first_dict(DD.dict)

Arguments

DD.dict

Data dictionary.

Details

SUBJECT_ID is required to be the first column of the data set and first variable listed in the data dictionary.

Value

Updated data dictionary with SUBJECT_ID as first variable.

Examples

data(ExampleQ)
head(DD.dict.Q)
DD.dict.updated <- id_first_dict(DD.dict.Q)
head(DD.dict.updated)

[Package dbGaPCheckup version 1.1.0 Index]