This is a free preview lesson of this course. Sign in to access it.
This lesson is a part of the course Portfolio Analysis in R
This tutorial will teach you about how to use R for portfolio analysis. We will be using various financial packages from R that will help us perform portfolio analysis. Let’s look at these packages:
Quantmod
Quantmod is a very powerful package that is designed for quant traders to explore and build quantitative trading models. For our work related to portfolio analysis, it will primarily be used to download relevant stock data, although it has further functionality for advanced techniques. It comes with both the xts and zoo packages, both of which are excellent programmes for manipulating time series data. The quantmod package can be used for three important things: 1) downloading data, 2) creating charts and 3) technical indicators and other functions.