collect_val_labels: Collect labels from metadata file

Description Usage Arguments Value See Also Examples

View source: R/collect_val_labels.R

Description

Collect labels from metadata file

Usage

1
2
3

Arguments

metadata

A metadata data frame created by metadata_create.

Value

The unique valid labels or the user-defined missing labels found in all the files analyzed in metadata.

See Also

Other harmonization functions: harmonize_na_values(), harmonize_values(), harmonize_waves(), label_normalize(), merge_waves(), na_range_to_values()

Examples

1
2
3
4
5
6
7
8
9
test_survey <- retroharmonize::read_rds (
   file = system.file("examples", "ZA7576.rds",
                  package = "retroharmonize"), 
   id = "test"
)
example_metadata <- metadata_create (test_survey)

collect_val_labels (metadata = example_metadata )
collect_na_labels ( metadata = example_metadata )

antaldaniel/retroharmonize documentation built on Aug. 15, 2020, 10:13 a.m.