Ben Daniel
11/14/2015
Issues Viewing this Information
There is a solution
Lets look at the stock price for The Home Depot, a home improvement retailer based in the United States in Atlanta, Georgia.
dataInput<-getSymbols("HD",src="yahoo",auto.assign = FALSE)
#transform to data frame
stockData<- as.data.frame(dataInput)
In the figure on the left, I used the hist function to create a histogram. On the right, TTR package creates a 10 period moving average forecast of the stock's closing price.