priceR1.0.3 package

Economics and Pricing Tools

adjust_for_inflation

Convert nominal prices into real prices

append_exchangeratehost_access_key

Retrieves exchangerate.host (forex) API key from R environment variabl...

convert_currencies

Convert Currencies

convert_to_iso2Code

Convert any country input into its iso2Code

country_input_type

Determines whether country input is a country name or iso2Code

currencies

Retrieve available currencies and their respective symbols/codes

currency_characters

Provide currency characters

currency_to_numeric

Convert human readable currencies into numeric data

display_api_info

Display link to further information

exchange_rate_latest

Retrieve the latest exchange rates between the provided currency code

extract_salary

Extract numeric salary from text data

format_currency

Make numeric currency values human readable

format_dollars

Make numeric currency values human readable

from_to_dates_rates

Wrapper around priceR::historical_exchange_rates() with slight modif...

historical_exchange_rates

Retrieve historical exchange rates

make_dates

Creates date ranges so as to batch up large API calls into many smalle...

pminmax

Removes redundant API calls of currency pairs. That is, revmoes the ne...

retrieve_historical_rates

Retrieve historical exchange rates

retrieve_inflation_data

Retrieve historical inflation data

round_down_to_nearest

Round prices down to the nearest specified increment

round_to_nearest

Round prices to the nearest specified increment

round_up_to_nearest

Round prices up to the nearest specified increment

show_countries

Show available country codes

url_all_results

Generate a World Bank API URL that will return all results for a given...

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).

  • Maintainer: Steve Condylios
  • License: MIT + file LICENSE
  • Last published: 2025-10-28