rdhs0.8.1 package

API Client and Dataset Management for the Demographic and Health Survey (DHS) Data

as_factor.labelled

Archived dataset capable as_factor

authenticate_dhs

DHS Website Authentication

available_datasets

Create a data frame of datasets that your log in can download

client_cache_date

Pull last cache date

client_dhs

Make a dhs client

collapse_api_responses

collapse API response list

data_and_labels

Create list of dataset and its variable names

delabel_df

convert labelled data frame to data frame of just characters

dhs_countries

API request of DHS Countries

dhs_data

API request of DHS Indicator Data

dhs_data_updates

API request of DHS Data Updates

dhs_datasets

API request of DHS Datasets

dhs_geometry

API request of DHS Geometry

dhs_indicators

API request of DHS Indicators

dhs_info

API request of DHS Info

dhs_publications

API request of DHS Publications

dhs_survey_characteristics

API request of DHS Survey Characteristics

dhs_surveys

API request of DHS Surveys

dhs_tags

API request of DHS Tags

dhs_ui_updates

API request of DHS UI Updates

download_boundaries

DHS Spatial Boundaries

download_datasets

Create a data frame of datasets that your log in can download

extract_dhs

Extract Data

extraction

DHS survey questions extracted from datasets

factor_format

reformat haven and labelled read ins to have no factors or labels

file_dataset_format

Returns what the dataset file ending should be for a given filename

get_available_datasets

Get Available Datasets

get_datasets

Get Datasets

get_downloaded_datasets

Get Downloaded Datasets

get_labels_from_dataset

Return variable labels from a dataset

get_rdhs_config

Get rdhs config

get_variable_labels

Get Survey Variable Labels

last_api_update

Pull last DHS API database update time

parse_map

Create dictionary from DHS .MAP codebook

parse_meta

Parse fixed-width file metadata

pipe

Pipe operator

rbind_labelled

Combine data frames with columns of class labelled

rbind_list_base

implementation of data.tables rbindlist

rdhs

rdhs DHS database through R

read_dhs_dataset

read in dhs standard file types

read_dhs_dta

Read DHS Stata data set

read_dhs_flat

Read DHS flat file data set

read_zipdata

Read filetype from a zipped folder based on the file ending

response_is_json

checks if the response is json or not by looking at the responses head...

response_to_json

converts response to json by first converting the response to text

search_variable_labels

Search Survey Variable Definitions

search_variables

Search Survey Variables

set_rdhs_config

Set rdhs config

unzip_special

unzip special that catches for 4GB+

update_rdhs_config

Update your current rdhs config

Provides a client for (1) querying the DHS API for survey indicators and metadata (<https://api.dhsprogram.com/#/index.html>), (2) identifying surveys and datasets for analysis, (3) downloading survey datasets from the DHS website, (4) loading datasets and associate metadata into R, and (5) extracting variables and combining datasets for pooled analysis.

  • Maintainer: OJ Watson
  • License: MIT + file LICENSE
  • Last published: 2023-11-21