reuseMeta {eatGADS} | R Documentation |
Use meta data for variables from another GADSdat
.
Description
Transfer meta information from one GADSdat
to another for one or multiple variables.
Usage
reuseMeta(
GADSdat,
varName,
other_GADSdat,
other_varName = NULL,
missingLabels = NULL,
addValueLabels = FALSE
)
Arguments
GADSdat |
|
varName |
Character vector with the names of the variables that should get the new meta data. |
other_GADSdat |
|
other_varName |
Character vector with the names of the variables in |
missingLabels |
How should meta data for missing values be treated? If |
addValueLabels |
Should only value labels be added and all other meta information retained? |
Details
Transfer of meta information can mean substituting the complete meta information, only adding value labels, adding only
"valid"
or adding only "miss"
missing labels.
See the arguments missingLabels
and addValueLabels
for further details.
Value
Returns the original object with updated meta data.
Examples
# see createGADS vignette