name_correct {dbGaPCheckup} | R Documentation |
This utility function updates the data set so variable names match those listed in the data dictionary.
name_correct(DD.dict, DS.data)
DD.dict |
Data dictionary. |
DS.data |
Data set. |
Recommend use with caution; perform name_check first.
Updated data set with variables renamed to match the data dictionary.
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)