You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: R/fetch_data.R
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,39 +1,39 @@
1
1
#' Retrieve DHS API data
2
2
#'
3
-
#' \code{fetch_data} retrieves DHS API data and returns a dataframe with arguments to specify countries, years, indicators, tags, and level of disaggregation.
3
+
#' \code{fetch_data} retrieves DHS API data and returns a dataframe with arguments to specify countries, years, indicators, tag, and level of disaggregation.
4
4
#' @details Set DHS API key with \code{\link{set_api_key}} and return fields with \code{\link{set_return_fields}}.
5
5
#' @param countries Specify countries by DHS country code. Use \code{fetch_countries} for listing of DHS country codes.
6
6
#' @param years Specify survey year(s)
7
7
#' @param indicators Specify indicators by indicator_id. Use \code{fetch_indicators} for indicator details including indicator_ids.
8
-
#' @param tags Specify tag. Use \code{fetch_tags} for details. NOTE: only 1 tag can be specified per call.
8
+
#' @param tag Specify tag. Use \code{fetch_tags} for details. NOTE: only 1 tag can be specified per call.
9
9
#' @param breakdown_level Specify level of data disaggregation. Options include "national" (default), "subnational", "background", and "all".
10
10
#' @param add_geometry Set to "true" for inclusion of polygon coordinates.
11
11
#' @return A list containing the API call and dataframe of the results.
0 commit comments