Package: priceR 1.0.2

priceR: Economics and Pricing Tools

Functions to aid in micro and macro economic analysis and handling of price and currency data. Includes extraction of relevant inflation and exchange rate data from World Bank API, data cleaning/parsing, and standardisation. Inflation adjustment calculations as found in Principles of Macroeconomics by Gregory Mankiw et al (2014). Current and historical end of day exchange rates for 171 currencies from the European Central Bank Statistical Data Warehouse (2020) <https://sdw.ecb.europa.eu/curConverter.do>.

Authors:Steve Condylios [aut, cre], Bruno Mioto [ctb], Bryan Shalloway [ctb]

priceR_1.0.2.tar.gz
priceR_1.0.2.zip(r-4.5)priceR_1.0.2.zip(r-4.4)priceR_1.0.2.zip(r-4.3)
priceR_1.0.2.tgz(r-4.4-any)priceR_1.0.2.tgz(r-4.3-any)
priceR_1.0.2.tar.gz(r-4.5-noble)priceR_1.0.2.tar.gz(r-4.4-noble)
priceR_1.0.2.tgz(r-4.4-emscripten)priceR_1.0.2.tgz(r-4.3-emscripten)
priceR.pdf |priceR.html
priceR/json (API)

# Install 'priceR' in R:
install.packages('priceR', repos = c('https://stevecondylios.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/stevecondylios/pricer/issues

Datasets:

On CRAN:

data-scienceeconometricseconomicsfinancemodelingr-programmingstatistics

6.58 score 59 stars 109 scripts 2.9k downloads 22 exports 26 dependencies

Last updated 3 months agofrom:9456c53ddd. Checks:OK: 1 NOTE: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 16 2024
R-4.5-winNOTEOct 16 2024
R-4.5-linuxNOTEOct 16 2024
R-4.4-winNOTEOct 16 2024
R-4.4-macNOTEOct 16 2024
R-4.3-winNOTEOct 16 2024
R-4.3-macNOTEOct 16 2024

Exports:adjust_for_inflationafiappend_exchangeratehost_access_keyconvert_currenciesconvert_to_iso2Codecountry_input_typecurrenciescurrency_characterscurrency_to_numericexchange_rate_latestextract_salaryformat_currencyformat_dollarsfrom_to_dates_rateshistorical_exchange_ratespminmaxretrieve_inflation_dataround_down_to_nearestround_to_nearestround_up_to_nearestshow_countriesurl_all_results

Dependencies:clicpp11dplyrfansigenericsgluegsubfnjsonlitelifecyclelubridatemagrittrpillarpkgconfigprotopurrrR6rlangstringistringrtibbletidyrtidyselecttimechangeutf8vctrswithr

Readme and manuals

Help Manual

Help pageTopics
Convert nominal prices into real pricesadjust_for_inflation afi
Retrieves exchangerate.host (forex) API key from R environment variables and appends to API callappend_exchangeratehost_access_key
Convert Currenciesconvert_currencies
Convert any country input into its iso2Codeconvert_to_iso2Code
Determines whether country input is a country name or iso2Codecountry_input_type
Retrieve available currencies and their respective symbols/codescurrencies
Provide currency characterscurrency_characters
Information for each of 191 currenciescurrency_info
Convert human readable currencies into numeric datacurrency_to_numeric
Display link to further informationdisplay_api_info
Retrieve the latest exchange rates between the provided currency codeexchange_rate_latest
Extract numeric salary from text dataextract_salary
Make numeric currency values human readableformat_currency
Make numeric currency values human readableformat_dollars
Wrapper around `priceR::historical_exchange_rates()` with slight modifications to structure of inputs and outputfrom_to_dates_rates
Retrieve historical exchange rateshistorical_exchange_rates
Creates date ranges so as to batch up large API calls into many smaller onesmake_dates
Removes redundant API calls of currency pairs. That is, revmoes the need to for separate calls for both `from = EUR, to = USD` and `from = USD, to = EUR`pminmax
Retrieve historical exchange ratesretrieve_historical_rates
Retrieve historical inflation dataretrieve_inflation_data
Round prices down to the nearest specified incrementround_down_to_nearest
Round prices to the nearest specified incrementround_to_nearest
Round prices up to the nearest specified incrementround_up_to_nearest
Show available country codesshow_countries
Generate a World Bank API URL that will return all results for a given indicator in JSON formaturl_all_results