National average retail prices of the CPI basket commodities
Source:R/retail-prices.R
knbs_retail_prices.RdReturns the monthly national average retail prices the KNBS CPI Explorer publishes for the 22 commodities it tracks — maize flour, bread, milk, petrol, house rent and the rest — one row per commodity per month, in Kenya Shillings per the stated unit and quantity.
Usage
knbs_retail_prices(
commodity = NULL,
start = NULL,
end = NULL,
source = NULL,
cache = knbs_option("cache"),
refresh = FALSE
)Value
A knbs_prices tibble with columns commodity_code, commodity,
unit, quantity, period, period_label, price and source_id.
Details
These are national averages only: the source holds no regional retail
prices. The portal states no licence; knbs_metadata() on the result says
so. A range query retrieves the full history once (a few seconds, then
cached); an exact single month is fetched directly.
See also
knbs_get_indicator() for the price indices the same portal
serves.