id_first_data: Relocate SUBJECT_ID to First Column of Data Set

View source: R/id_first_data.R

id_first_dataR Documentation

Relocate SUBJECT_ID to First Column of Data Set

Description

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

Usage

id_first_data(DS.data)

Arguments

DS.data

Data set.

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 set with SUBJECT_ID as first column.

Examples

data(ExampleQ)
head(DS.data.Q)
DS.data.updated <- id_first_data(DS.data.Q)
head(DS.data.updated)

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