-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.Rhistory
136 lines (136 loc) · 4.26 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
source('~/projects/bigdata/LoadParsedData.r')
rawData
parsedData$data
parsedData$daily_views
data.frame(Date=names(parsedData$daily_views), Views=parsedData$daily_views)
data.frame(Date=names(parsedData$daily_views), Views=parsedData$daily_views, row.names = NULL)
viewsData <- data.frame(Date=names(parsedData$daily_views), Views=parsedData$daily_views, row.names = NULL)
viewsData$Date
viewsData$Views
viewsData$Views[3,]
viewsData[3,]
viewsData$Date <- as.Date(viewsData$Date)
viewsData
order(viewsData$Date)
viewsData[order(viewsData$Date)]
viewsData[order(viewsData$Date),1]
viewsData <- viewsData[order(viewsData$Date),1]
viewsData
row.names(viewsData) <- NULL
viewsData
viewsData
viewsData
viewsData$
order(viewsData$Date)
parsedData$daily_views
viewsData <- data.frame(Date=names(parsedData$daily_views), Views=parsedData$daily_views, row.names = NULL)
viewsData
viewsData$Date <- as.Date(viewsData$Date)
viewsData
viewsData$
order(viewsData$Date)
viewsData$
order(viewsData$Date)
viewsData
viewsData
View(viewsData)
viewsData
viewsData$Date <- as.Date(viewsData$Date)
viewsData$
order(viewsData$Date)
order(viewsData$Date)
viewsData
order(viewsData$Date)
viewsData$Date[order()]
viewsData
viewsData[order(viewsData$Date),]
viewsData <- viewsData[order(viewsData$Date),]
viewsData
viewsData
row.names(viewsData) <- NULL
viewsData
install.packages("ggplot2")
library(ggplot2)
ggplot(data = viewsData, aes)
ggplot(data = viewsData, aes(x=Date, y=Views, group=1)) + geom_line()
ggplot(data = viewsData, aes(x=Date, y=Views, group=1)) + geom_bar()
ggplot(data = viewsData, aes(x=Date, y=Views, group=1)) + geom_line()
year <- 2014
month <- 10
theURL <- "http://stats.grok.se/json/en/"
theURL
theURL <- paste0(theURL,year)
theURL
theURL <- paste0(theURL,month)
theURL
theURL <- paste0(theURL,"/Friday")
theURL
source('~/projects/bigdata/WikiMultipleMonths.R')
source('~/projects/bigdata/WikiMultipleMonths.R')
source('~/projects/bigdata/WikiMultipleMonths.R')
source('~/projects/bigdata/WikiMultipleMonths.R')
source('~/projects/bigdata/WikiMultipleMonths.R')
source('~/projects/bigdata/WikiMultipleMonths.R')
source('~/projects/bigdata/WikiMultipleMonths.R')
source('~/projects/bigdata/WikiMultipleMonths.R')
source('~/projects/bigdata/WikiMultipleMonths.R')
source('~/projects/bigdata/WikiMultipleMonths.R')
source('~/projects/bigdata/WikiMultipleMonths.R')
source('~/projects/bigdata/WikiMultipleMonths.R')
source('~/projects/bigdata/WikiMultipleMonths.R')
source('~/projects/bigdata/WikiMultipleMonths.R')
source('~/projects/bigdata/WikiMultipleMonths.R')
source('~/projects/bigdata/WikiMultipleMonths.R')
source('~/projects/bigdata/WikiMultipleMonths.R')
source('~/projects/bigdata/WikiMultipleMonths.R')
source('~/projects/bigdata/WikiMultipleMonths.R')
source('~/projects/bigdata/WikiMultipleMonths.R')
source('~/projects/bigdata/WikiMultipleMonths.R')
allURLs
source('~/projects/bigdata/WikiMultipleMonths.R')
allURLs
source('~/projects/bigdata/WikiMultipleMonths.R')
source('~/projects/bigdata/WikiMultipleMonths.R')
allURLs
allURLs <- NULL
allURLs
source('~/projects/bigdata/WikiMultipleMonths.R')
allURLs
source('~/projects/bigdata/WikiMultipleMonths.R')
allURLs
source('~/projects/bigdata/WikiMultipleMonths.R')
allURLs
source('~/.active-rstudio-document')
source('~/.active-rstudio-document')
source('~/projects/bigdata/DownloadWikiData.R')
source('~/projects/bigdata/DownloadWikiData.R')
source('~/projects/bigdata/DownloadWikiData.R')
viewsData
source('~/projects/bigdata/DownloadWikiData.R')
View(viewsData)
View(AllViewsData)
View(AllViewsData)
AllViewsData
str(AllViewsData)
AllViewsData$Date <- as.Date(AllViewsData$Date)
str(AllViewsData)
AllViewsData <- AllViewsData[order(AllViewsData$date),]
AllViewsData <- AllViewsData[order(AllViewsData$Date),]
AllViewsData
AllViewsData$Date <- subset(AllViewsData, !is.na(AllViewsData$Date))
AllViewsData
AllViewsData$Date <- subset(AllViewsData, !is.na(AllViewsData$Date))
AllViewsData <- subset(AllViewsData, !is.na(AllViewsData$Date))
AllViewsData
row.names(AllViewsData) <- NULL
AllViewsData
library(ggplot2)
ggplot(data=AllViewsData, aes(x=Date, y=Views, group=1)) + geom_line()
str(AllViewsData)
AllViewsData <- order(AllViewsData$Views)
AllViewsData
source('~/projects/bigdata/DownloadWikiData.R')
str(AllViewsData)
AllViewsData$Date <- as.Date(AllViewsData$Date)
str(AllViewsData)
AllViewsData