Man pages for sakrejda/pdhs
Programmatic handling of Demographic Health Survey (DHS) data.

cmc_to_dateConvert century-month-code to date
cmc_to_monthConvert century-month-code to a month
cmc_to_yearConvert century-month-code to a year
download_manualsDownload recode manuals
examplesReturns the package's examples directory (for the loaded...
extract_column_labelsExtract column labels to match column codes.
extract_countryExtract country name from file name.
extract_country_codeFor a filename 'file', extract the country code (first two...
extract_dataset_typeExtract the dataset type from the file name.
extract_dataset_type_codeFor a filename 'file', extract the dataset type code (3rd and...
extract_dhs_releaseExtract the DHS round's data release version from the file...
extract_dhs_release_codeFor a filename 'file', extract the within-round data release...
extract_dhs_roundExtract the DHS round from the file name.
extract_dhs_round_codeFor a filename 'file', extract the DHS round code (5th...
extract_dta_filesExtract .dta files from DHS .zip files and insert data on...
extract_formatExtract the file format from the file name.
extract_format_codeFor a filename 'file', extract the data format code (7th and...
extract_survey_stubFor a filename 'file', extract the stub (first 8 characters)
extract_value_labelsExtract column value labels to match column value codes.
filtered_unzipUnzip from a path to a single file or multiple files to a...
filter_file_namesTakes a path or vector of paths and filters either using a...
find_fileFind a full path to a file name, recursively
get_column_codeGet column code matching a search string
get_column_labelGet column label matching a column code
get_country_codeRetrieves the country code based on a text match against 's'.
get_country_code_mapReturn a hacked-together named vector connecting country DHS...
get_country_code_pageThis downloads the page for the URL that _currently_ has the...
get_dataset_type_codeRetrieves the dataset type code based on a text match against...
get_dataset_type_mapReturn a hackeed-together named vector connecting country DHS...
get_dataset_type_pageThis downloads the page for the URL that _currently_ has the...
get_expectationsReturn the expected outputs from a job:
get_expected_filesReturns the expected output files from a job:
get_extGet file extension from path
get_file_format_codeRetrieves DHS file format code based on a text match against...
get_file_format_extension_mapReturn a named vector describing data format extensions and...
get_file_format_extensionsRetrieves the file format extension based on a text match...
get_file_format_mapReturn a named vector describing data formats and their DHS...
get_jobRetrieve a job with defaults integrated.
get_manual_pathsRetrieves the links to the recode manuals for all rounds.
get_recode_manual_pageCurrent location of the DHS recode manuals.
get_scriptRetrieve the script to run on.
get_value_codeGet value code matching a search string
get_value_labelsGet value label matching a value code
has_extensionCheck if a string has a specific extension, fails without...
homeReturns the package's install directory (for the loaded...
index_filesFor a path return a vector of full paths to contained file...
insert_internal_codesWhile DHS data _usually_ encodes the survey code (country,...
is_dtaCheck if a string has the .dta extension.
jackknife_estimatesProduce standard DHS weighted estimates and intervals for...
jackknife_weighted_meanWeighted mean with jackknife, returns single obs....
jackknife_weighted_sdWeighted sd with jackknife.
list_filesDHS data is delivered in .zip files and the names of these...
loggerReturn a closure with a log file set
null_or_compareAllow NULL to evaluate as TRUE for filtering to play nice...
process_filenameSpecialize for just one path element, error otherwise.
process_filenamesExtract all filename components into meaningful strings using...
save_outputSave output
scriptedRun files based on scripts... take N+1...
scriptsReturns the package's scripts directory (for the loaded...
staticReturns the package's static resource directory (for the...
sakrejda/pdhs documentation built on May 28, 2019, 9:51 a.m.