Initial CRAN release.
download_wid(): download data from the WID API; returns
a wid_df, a classed data.frame compatible with
dplyr and ggplot2 without unwrappingdownload(): alias for download_wid()wid_validate(), wid_is_valid(): validate
WID code components; the latter returns a scalar logical without
throwingwid_encode(), wid_decode(): convert
between variable codes (e.g. "sptinc992j") and named
component listswid_search(): search any of the six reference tables by
regexwid_tidy(): decode variable codes into human-readable
columns; coerceyear to integer and value to
doublewid_convert(): currency conversion via WID
exchange-rate series; supports "lcu", "usd",
"eur", "gbp", "ppp",
"yppp"wid_metadata(): fetch source and methodological
information for the variables in a wid_dfwid_gini(): Gini coefficient from a share serieswid_top_share(): top fractile income or wealth
sharewid_percentile_ratio(): percentile ratio (e.g. P90/P10)
from a threshold serieswid_plot_timeseries(): time-series line chart; returns
a ggplot objectwid_plot_compare(): cross-country bar or point chart
for a single yearwid_plot_lorenz(): Lorenz curvewid_query(): build a reusable query objectwid_filter(): update query fieldswid_fetch(): execute a querywid_cache(): get, set, list, or clear cached API
responseswid_cache_list(): list cached fileswid_cache_clear(): remove all cached filesSix lookup tables synchronised from https://wid.world/codes-dictionary/:wid_series_types,
wid_concepts, wid_ages,
wid_pop_types, wid_countries,
wid_percentiles.