insert_internal_codes: While DHS data _usually_ encodes the survey code (country,...

Description Usage Arguments Value

Description

While DHS data _usually_ encodes the survey code (country, round, and release) in the file names, sometimes these are not correct. It is possible to run a straightforward check by looking in the contained Stata files and generating an independent label from the 'v000' column which concatenates the country code and the DHS round (not release) code. This function takes a list produced by 'list_files' and inserts the internal country and round codes.

Usage

1

Arguments

l

output of 'list_files' function.

Value

same as input with (where possible) inserted 'internal_country_code' and 'internal_round_code' elements.


sakrejda/pdhs documentation built on May 28, 2019, 9:51 a.m.