From e4a40f325c5cb3ef7b875a643283e15161c0cfaa Mon Sep 17 00:00:00 2001 From: Ronny De Winter Date: Wed, 24 Feb 2016 23:07:10 +0100 Subject: [PATCH] include r statement: library(forecast) to support forecast and ma function calls --- 08_PracticalMachineLearning/027forecasting/index.Rmd | 1 + 1 file changed, 1 insertion(+) diff --git a/08_PracticalMachineLearning/027forecasting/index.Rmd b/08_PracticalMachineLearning/027forecasting/index.Rmd index b8f37db94..71e55e96c 100644 --- a/08_PracticalMachineLearning/027forecasting/index.Rmd +++ b/08_PracticalMachineLearning/027forecasting/index.Rmd @@ -88,6 +88,7 @@ knit_hooks$set(plot = knitr:::hook_plot_html) ```{r loadGOOG} library(quantmod) +library(forecast) from.dat <- as.Date("01/01/08", format="%m/%d/%y") to.dat <- as.Date("12/31/13", format="%m/%d/%y") getSymbols("GOOG", src="google", from = from.dat, to = to.dat)