diff --git a/NEWS.md b/NEWS.md index 790cebe4..1aba5dd8 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,7 +1,15 @@ # ipumsr (development version) -* Improved parsing of labeled values included in "codInstr" tags in the DDI - codebook for microdata extracts. +## New features + +* Added API support for IPUMS DHS (`"dhs"`). DHS extracts can now be defined, + submitted, and downloaded via the IPUMS API using the same workflow as other + microdata collections. + +## Bug fixes + +* Improved parsing of labeled values included in "codInstr" tags in the DDI + codebook for microdata extracts (#94). # ipumsr 0.9.0 diff --git a/R/api_define_extract.R b/R/api_define_extract.R index a550e78d..be0fda0f 100644 --- a/R/api_define_extract.R +++ b/R/api_define_extract.R @@ -96,6 +96,7 @@ NULL #' + [IPUMS USA](https://usa.ipums.org/) #' + [IPUMS CPS](https://cps.ipums.org/) #' + [IPUMS International](https://international.ipums.org/) +#' + [IPUMS DHS](https://www.idhsdata.org/idhs/) #' + IPUMS Time Use ([ATUS](https://www.atusdata.org/atus/), [AHTUS](https://www.ahtusdata.org/ahtus/), [MTUS](https://www.mtusdata.org/mtus/)) #' + IPUMS Health Surveys ([NHIS](https://nhis.ipums.org/), [MEPS](https://meps.ipums.org/)) #' diff --git a/R/api_helpers.R b/R/api_helpers.R index 3c2fcf7b..58cbdf1d 100644 --- a/R/api_helpers.R +++ b/R/api_helpers.R @@ -18,6 +18,7 @@ #' * IPUMS International (`"ipumsi"`) #' * IPUMS Time Use (`"atus"`, `"ahtus"`, `"mtus"`) #' * IPUMS Health Surveys (`"nhis"`, `"meps"`) +#' * IPUMS DHS (`"dhs"`) #' * IPUMS NHGIS (`"nhgis"`) #' * IPUMS IHGIS (`"ihgis"`) #' diff --git a/R/api_metadata.R b/R/api_metadata.R index f39f6f85..31f63c7b 100644 --- a/R/api_metadata.R +++ b/R/api_metadata.R @@ -264,6 +264,7 @@ get_metadata <- function(collection, #' get_sample_info("ipumsi") #' get_sample_info("atus") #' get_sample_info("meps") +#' get_sample_info("dhs") #' } get_sample_info <- function(collection = NULL, delay = 0, @@ -291,7 +292,8 @@ catalog_types <- function(collection) { "ahtus" = "samples", "mtus" = "samples", "nhis" = "samples", - "meps" = "samples" + "meps" = "samples", + "dhs" = "samples" ) endpts[[collection]] diff --git a/R/proj_config.R b/R/proj_config.R index e8e52cf4..586c1464 100644 --- a/R/proj_config.R +++ b/R/proj_config.R @@ -117,6 +117,7 @@ proj_config <- function() { url_name = "idhs", collection_type = "microdata", code_for_api = "dhs", + api_support = TRUE, home_url = "https://www.idhsdata.org/", var_url = function(var = "group") { get_var_url("idhsdata", "idhs", var = var, ipums_domain = FALSE) diff --git a/README.Rmd b/README.Rmd index 94b03be6..7de9e5c5 100644 --- a/README.Rmd +++ b/README.Rmd @@ -162,7 +162,7 @@ tbl_config <- list( "and Performance Monitoring for Action (PMA) surveys" ), read = checkmark(), - request = "", + request = "DHS only", metadata = "" ), list( diff --git a/README.md b/README.md index 38d999ae..7442a758 100644 --- a/README.md +++ b/README.md @@ -63,242 +63,408 @@ ipumsr supports different levels of functionality for each IPUMS project, as summarized in the table below.
| + | ++ | ++ Data Type | ++ Description | ++ Read Data Extracts | ++ Request & Download Data | ++ Browse Metadata | +
|---|---|---|---|---|---|---|
+
|
+
+ IPUMS USA | ++ Microdata | ++ U.S. Census and American Community Survey microdata (1850-present) | +
+
|
+
+
|
+
+ | +
+
|
+
+ IPUMS CPS | ++ Microdata | ++ Current Population Survey microdata including basic monthly surveys and supplements (1962-present) | +
+
|
+
+
|
+
+ | +
+
|
+
+ IPUMS International | ++ Microdata | ++ Census microdata covering over 100 countries, contemporary and historical | +
+
|
+
+
|
+
+ | +
+
|
+
+ IPUMS NHGIS | ++ Aggregate Data | ++ Tabular U.S. Census data and GIS mapping files (1790-present) | +
+
|
+
+
|
+
+
|
+
+
|
+
+ IPUMS IHGIS | ++ Aggregate Data | ++ Tabular and GIS data from population, housing, and agricultural censuses around the world | +
+
|
+
+
|
+
+
|
+
+
|
+
+ IPUMS Time Use | ++ Microdata | ++ Time use microdata from the U.S. (1930-present) and thirteen other countries (1965-present) | +
+
|
+
+
|
+
+ | +
+
|
+
+ IPUMS Health Surveys | ++ Microdata | ++ Microdata from the U.S. National Health Interview Survey (NHIS) (1963-present) and Medical Expenditure Panel Survey (MEPS) (1996-present) | +
+
|
+
+
|
+
+ | +
+
|
+
+ IPUMS Global Health | ++ Microdata | ++ Health survey microdata for low- and middle-income countries, including harmonized data collections for Demographic and Health Surveys (DHS) and Performance Monitoring for Action (PMA) surveys | +
+
|
+
+ +DHS only | ++ | +
+
|
+
+ IPUMS Higher Ed | ++ Microdata | ++ Survey microdata on the science and engineering workforce in the U.S. from 1993 to 2013 | +
+
|
+
+ | ++ | +