reorder_data {dbGaPCheckup} | R Documentation |
Reorder Data Set Utility Function
Description
This utility function reorders the data set to match the data dictionary.
Usage
reorder_data(DD.dict, DS.data)
Arguments
DD.dict |
Data dictionary. |
DS.data |
Data set. |
Value
Updated data set with variables reordered to match the data dictionary.
Examples
data(ExampleN)
name_check(DD.dict.N, DS.data.N)
DS.data_updated <- reorder_data(DD.dict.N, DS.data.N)
name_check(DD.dict.N, DS.data_updated)
[Package dbGaPCheckup version 1.1.0 Index]