This book introduces the reader to the use of R and RStudio as a platform for analyzing financial and economic data. The book covers all necessary knowledge for using R, from its installation in your computer to the organization and development of scripts. For every chapter, the book presents practical and replicable examples of R code, providing context and facilitating the learning process.
This is what you’ll learn from this book:
01 - Using R and RStudio
02 - Importing financial and economic data from local files and the internet
03 - Programing with R
04 - Cleaning, structuring and analyzing data with R
05 - Data visualization with R
06 - Reporting your results
07 - Writing better and faster R code
You can purchase the book from Amazon as an ebook or paperback. An online version of the book, with the first seven chapters is available here.
To cite package ‘afedR3’ in publications use:
Perlin MS (2023). afedR3: Data and Functions for third edition of Book “Analyzing Financial and Economical Data with R”. R package version 0.1, https://github.com/msperlin/afedR3/.
A BibTeX entry for LaTeX users is
@Manual{, title = {afedR3: Data and Functions for third edition of Book “Analyzing Financial and Economical Data with R”}, author = {Marcelo S. Perlin}, year = {2023}, note = {R package version 0.1}, url = {https://github.com/msperlin/afedR3/}, }
02-Tutorial on compiling book exercises
03-Book package afedR3 in Github
Installing R and RStudio:
https://www.r-project.org/ | https://posit.co/
CRAN pages:
R Views for Finance | R Consortium | Official R Manual | CRAN Policies
RMarkdown:
Creating Packages:
Hadleys Guide for creating packages
R code style: