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
GADSdat
object imported viaeatGADS
.- varName
Character vector with the names of the variables that should get the new meta data.
- other_GADSdat
GADSdat
object imported viaeatGADS
including the desired meta information. Can either be aGADSdat
, aneatGADS
data base or anall_GADSdat
object.- other_varName
Character vector with the names of the variables in
other_GADSdat
that contain the meta data which should be copied.- missingLabels
How should meta data for missing values be treated? If
NULL
, missing values are transferred as all other labels. If"drop"
, missing labels are dropped (useful for imputed data). If"leave"
, missing labels remain untouched. If"only"
, all valid value labels are dropped.- addValueLabels
Should only value labels be added and all other meta information retained?