Extract Financial Data in R using 'quantmod'
Step 1: Install and Load required packages
>install.packages('quantmod')>library(quantmod)
Step 2: Decide what kind of data you want
Extract the currency rate of last 180 days from Oanda#This will return US dollar to Indian Rupee rate of last 180 days
>getSymbols("USD/INR", src="oanda")
>View(USDINR)
>summary(USDINR)
>plot(USDINR, main = "US Dollar to Indian Rupee", sub = "180 Days", xlab = "Time Period", ylab = "Rupee per Dollar")
Output
Extract Stock details from google
>getSymbols.google('TTM', verbose=TRUE,from = "2017-01-01", to = "2017-07-01", env = globalenv())>View(TTM)






















