View source: R/filter_unicef.R
filter_unicef | R Documentation |
Remove duplicated country-year rows in UNICEF datasets, based on a specified priority order.
filter_unicef(df, priority)
df |
data.frame: A |
priority |
character: A vector with survey sources to prioritize between. See 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.
data.frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.