filter_unicef: Filter UNICEF

View source: R/filter_unicef.R

filter_unicefR Documentation

Filter UNICEF

Description

Remove duplicated country-year rows in UNICEF datasets, based on a specified priority order.

Usage

filter_unicef(df, priority)

Arguments

df

data.frame: A pddcs formatted data frame. Output of fetch_indicator().

priority

character: A vector with survey sources to prioritize between. See details.

Details

The abbreviation of survey sources in the note column is used to prioritize between different surveys if there are duplicated country-years. Typical use cases are MIS, DHS, MICS and AIS. The surveys are prioritized in the order they are listed, e.g. if priority = c('X', 'Y', 'Z'), then X will be chosen before Y, which again will be chosen before Z.

Value

data.frame


worldbank/pddcs documentation built on Nov. 20, 2024, 5:41 a.m.