name_correct {dbGaPCheckup}R Documentation

Name Correction Utility Function

Description

This utility function updates the data set so variable names match those listed in the data dictionary.

Usage

name_correct(DD.dict, DS.data)

Arguments

DD.dict

Data dictionary.

DS.data

Data set.

Details

Recommend use with caution; perform name_check first.

Value

Updated data set with variables renamed to match the data dictionary.

Examples

data(ExampleM)
name_check(DD.dict.M, DS.data.M)
DS.data_updated <- name_correct(DD.dict.M, DS.data.M)
name_check(DD.dict.M, DS.data_updated)

[Package dbGaPCheckup version 1.1.0 Index]