-
Notifications
You must be signed in to change notification settings - Fork 0
/
.Rhistory
48 lines (48 loc) · 1.18 KB
/
.Rhistory
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
install.packages("Quandl")
library(Quandl)
install.packages("ggplot2")
library(ggplot2)
holddata = Quandl("FRED/GDP")
Quandl.auth("K4F4USh2Zu2wKwG5jLJ2")
str(holddata)
GDP = Quandl("FRED/GDP",start_date="2000-01-01",end_date="2013-12-31", type="xts")
str(GDP)
head(GDP)
class(GDP)
head(GDP)
JPY = Quandl("QUANDL/USDJPY",start_date="2000-01-01",end_date="2013-06-07", type="xts")
class(JPY)
head(JPY)
head(holddata)
str(holddata)
library(Quandl)
library(ggplot2)
holddata = Quandl("FRED/GDP")
Quandl.auth("K4F4USh2Zu2wKwG5jLJ2")
str(holddata)
View(holddata)
View(holddata)
head(holddata)
GDP = Quandl("FRED/GDP",start_date="2000-01-01",end_date="2013-12-31", type="xts")
str(GDP)
head(GDP)
class(GDP)
head(GDP)
ggplot(GDP)
autoplot(GDP)
autoplot(log(GDP)) + stat_smooth()
ggplot(GDP) # doesn't work because ggplot doesn't work with xts
fix(GDP)
fix(GDP)
fix(GDP)
ggplot(GDP) # doesn't work because ggplot doesn't work with xts
require(ggplot2)
require(grid)
require(RColorBrewer)
require(quantmod)
install.packages("quantmod")
require(quantmod)
install.packages("Defaults")
autoplot(GDP)
install.packages("xts", repos="http://R-Forge.R-project.org")
install.packages("xts", repos = "http://R-Forge.R-project.org")