Analyzing Financial and Economic Data with R


Where to buy it

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.


You can cite the book as:

PERLIN, Marcelo S. Analyzing Financial and Economic Data with R. 2 ed. Porto Alegre: Marcelo S. Perlin (independent publisher), 2020.


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

03 - Cleaning, structuring and analyzing the data with R

04 - Creating a visual analysis of data

05 - Reporting your results

06 - Writing better and faster code

Supplement Material

01-Solutions to end of chapter exercises

02-Dynamic exercises (see blog post)

03-Data and Code

04-Online edition

05-Table of Contents

Installing R and RStudio: |

CRAN pages:

R Views for Finance | R Consortium | Official R Manual | CRAN Policies


Official RMarkdown Tutorial

Creating Packages:

Hadleys Guide for creating packages

R code style:

Google R style guide | Tidyverse style guide

Marcelo S. Perlin
Marcelo S. Perlin
Associate Professor of Finance

My research interests include distributed robotics, mobile computing and programmable matter.

comments powered by Disqus