{"repo":"stevecondylios/priceR","free":true,"listed":false,"github":"https://github.com/stevecondylios/priceR","clone":"git clone https://github.com/stevecondylios/priceR.git","description":"Economics and Pricing in R","language":"R","stars":63,"topics":["economics","finance","statistics","modeling","econometrics","data-science","r-programming","cran"],"license":null,"category":"trading","readme_excerpt":"priceR priceR contains 4 types of capabilties: - Exchange Rates - easily retrieve exchange rates for immediate use - Inflation - easily inflate past (nominal) values into present day (real) prices - Regular Expressions - easily extract common pricing patterns from free text - Formatting - easily handle currencies in written work, including Rmarkdown documents Installation Installation via CRAN install.packages(\"priceR\") Exchange rates Setup Set up only takes a minute and is free for 100 requests per account per calendar month. Go to , create a free account, and replace 7e5e3140140bd8e4f4650cc41fc772c0 with your API key in the following, and run once per R session. Current exchange rates View the current exchange rates for 170 currencies (see them all by running currencies() ): ## currency one USD is equivalent to ## 1 AED 3.67250 ## 2 AFN 65.49843 ## 3 ALL 83.07496 ## 4 AMD 384.26342 ## 5 ANG 1.78998 ## 6 AOA 916.99990 ## 7 ARS 1432.54310 ## 8 AUD 1.52554 ## 9 AWG 1.80250 ## 10 AZN 1.70556 Historical exchange rates Here’s an example of how to get exchange rates for some currency pairs: ## date one AUD equivalent to x USD one AUD equivalent to x EUR ## 1 2013-01-01 1.03746 0.785518 ## 2 2013-01-02 1.04997 0.795034 ## 3 2013-01-03 1.04722 0.800920 ## 4 2013-01-04 1.04837 0.800502 ## 5 2013-01-05 1.04837 0.800502 ## 6 2013-01-06 1.04916 0.800944 And to plot the exchange rate data: ## Warning: Using size aesthetic for lines was deprecated in ggplot2 3.4.0. ## ℹ Please use linewid","default_branch":null,"files":null,"tree":[],"storefront":"/r/stevecondylios","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/stevecondylios/priceR/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}