interpolate_wdi: Interpolate missing values in indicator variables

Description Usage Arguments Value

View source: R/quickplots.R

Description

most probably, there will be missing values in some countries for some years so here's a controversial decision to make the animations look good. Let's fill missing values for each country, by interpolating values in the gaps and filling with the first or last value available

Usage

1
interpolate_wdi(wdi_data)

Arguments

wdi_data

dataset to interpolate, as returned by download_wdi

Value

a data.frame with interpolated values and additional column indicating which indicators, for which year and country were interpolated


edalfon/wdiquickplots documentation built on Dec. 24, 2021, 3 p.m.