set_return_fields: Set return fields for DHS API

Description Usage Arguments Value See Also Examples

View source: R/set_return_fields.R

Description

set_return_fields captures a set of return fields for use in fetch_data.

Usage

1
set_return_fields(dhs_return_fields)

Arguments

dhs_return_fields

Input return fields to populate the retrieved dataframe from the DHS API. Please see https://api.dhsprogram.com/rest/dhs/data/fields for complete list of available fields.

Value

Captures a vector of the specified return fields.

See Also

fetch_data

Examples

1
2
3
4
5
set_return_fields(c("Indicator", "IndicatorId","CountryName", "DHS_CountryCode",
                    "SurveyYear", "SurveyYearLabel", "SurveyType",
                    "CharacteristicCategory", "CharacteristicLabel", "ByVariableLabel",
                    "DenominatorWeighted", "DenominatorUnweighted",
                    "CILow", "CIHigh", "Value"))

murphy-xq/fetchdhs documentation built on May 14, 2019, 8:02 a.m.