id_first_dict: Relocate SUBJECT_ID to First Column of Data Dictionary

View source: R/id_first_dict.R

id_first_dictR 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)

dbGaPCheckup documentation built on Sept. 27, 2023, 5:06 p.m.