Forfaits

R intermédiaire pour la finance

Lore Dirick

Manager of Data Science Curriculum at Flatiron School

Forfaits

ch4_vid3_slides.003.png

R intermédiaire pour la finance

Forfaits

ch4_vid3_slides.004.png

R intermédiaire pour la finance

CRAN

  • Comprehensive R Archive Network
  • Plus de 10 000 forfaits
R intermédiaire pour la finance

Installer des forfaits

# Download from CRAN
install.packages("quantmod")
# Load into your current R session
library(quantmod)
R intermédiaire pour la finance

Fonctionnalités de quantmod

library(quantmod)
getSymbols("IBM")
"IBM"
head(IBM, n = 3)
           IBM.Open IBM.High IBM.Low IBM.Close IBM.Volume IBM.Adjusted
2007-01-03    97.18    98.40   96.26     97.27    9196800     77.73997
2007-01-04    97.25    98.79   96.88     98.31   10524500     78.57116
2007-01-05    97.60    97.95   96.91     97.42    7221300     77.85985
plot(IBM$IBM.Adjusted)

ch4_vid3_slides.016.png

R intermédiaire pour la finance

Passons à la pratique !

R intermédiaire pour la finance

Preparing Video For Download...