Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
271 lines (208 loc) · 14.1 KB
/
Copy pathindex.html
File metadata and controls
271 lines (208 loc) · 14.1 KB
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title>R 語言翻轉教室</title>
<!-- Le styles -->
<link href="bootstrap/css/bootstrap.css" rel="stylesheet">
<link href="bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
<link href="bootstrap/css/docs.css" rel="stylesheet">
<link href="bootstrap/js/google-code-prettify/prettify.css" rel="stylesheet">
</head>
<body data-spy="scroll" data-target=".bs-docs-sidebar">
<header class="jumbotron subhead" id="overview"><div class="container"><h1>R 語言翻轉教室</h1><p class="lead">預定於四月正式發布</p></div></header>
<div class="container">
<div class="row">
<div class="span3 bs-docs-sidebar"><ul class="nav nav-list bs-docs-sidenav" data-spy="affix"><li><a href="#1">1. 簡介</a></li><li><a href="#2">2. 即時動態</a></li><li><a href="#3">3. 線上體驗區(需參加實體課程)</a></li><li><a href="#4">4. 快速安裝區</a></li><li><a href="#5">5. 互動式學習環境快速上手區</a></li><li><a href="#6">5.1. 1. 進入學習環境</a></li><li><a href="#7">5.2. 2. 選擇課程(Course)</a></li><li><a href="#8">5.3. 3. 選擇你要進行的單元(Lesson)</a></li><li><a href="#9">6. 求助專區</a></li><li><a href="#10">7. 緣起</a></li><li><a href="#11">8. 課程筆記</a></li><li><a href="#12">9. 課程投影片</a></li><li><a href="#13">10. License</a></li></ul></div><div class="span9"><p><!-- title: R 語言翻轉教室 -->
<!-- subtitle: 預定於四月正式發布 --></p>
<script>
((window.gitter = {}).chat = {}).options = {
room: 'wush978/DataScienceAndR'
};
</script>
<script src="https://sidecar.gitter.im/dist/sidecar.v1.js" async defer></script>
<script src="http://momentjs.com/downloads/moment-with-locales.min.js" async defer></script>
<script>
function showRegistrationRecords() {
$("#records").empty();
var url1 = "http://api.datascienceandr.org:3000/api/getManyRecords";
var url2 = "http://api2.datascienceandr.org:3000/api/getManyRecords";
var used_records = [];
function successOperation(data) {
data.forEach(function(record) {
used_records.push(record);
});
}
function getManyRecordsOperation(url, completeOperation) {
return function(jqXHR, status) {
$.ajax({
url:url,
type:"POST",
data:{num:5},
dataType:"json",
success: successOperation,
complete: completeOperation
});
};
}
var operation = getManyRecordsOperation(url1, getManyRecordsOperation(url2, function() {
used_records.sort(function(r1, r2) {
if (r1.created_at < r2.created_at)
return 1;
else if (r1.created_at > r2.created_at)
return -1;
else
return 0;
});
used_records.forEach(function(record) {
m = moment(record.created_at);
if (record.type == 0) {
li = "<li>" + record.user_id + "在" + m.fromNow() + "進入了" + record.course + "</li>"
} else {
li = "<li>" + record.user_id + "在" + m.fromNow() + "完成了" + record.course + "</li>"
}
$("#records").append(li);
});
}));
operation();
}
window.onload =function(){
moment.locale("zh-tw");
moment.updateLocale("zh-tw", {
relativeTime : {
future : '%s內',
past : '%s前',
s : '幾秒',
m : '1分鐘',
mm : '%d分鐘',
h : '1小時',
hh : '%d小時',
d : '1天',
dd : '%d天',
M : '1個月',
MM : '%d個月',
y : '1年',
yy : '%d年'
}});
showRegistrationRecords();
}
</script>
<p>測試結果: Linux <img src="https://travis-ci.org/wush978/DataScienceAndR.svg?branch=course" alt="" title="" /> Windows <a href="https://ci.appveyor.com/project/wush978/datascienceandr/branch/course"><img src="https://ci.appveyor.com/api/projects/status/tej2qnpdxwy2r5lp/branch/course?svg=true" alt="Build status" title="" /></a></p>
<h2 id="1">1. 簡介</h2>
<p>這是一個以著重於實作,一個動態的<strong>R 語言在地化中文教材</strong>。和其他R 教材相比,這份教材具有以下的特色:</p>
<ol>
<li><strong>完整</strong>。由於教材是參考CRAN上介紹R 的官方文件:<a href="https://cran.r-project.org/doc/manuals/R-intro.pdf">An Introduction to R</a>所撰寫的,同學即使只有使用這份教材學R ,即可獲得所有用R 所需要的所有知識。</li>
<li><strong>在地化的中文資料處理</strong>。教材是特別針對處理台灣的Open Data所設計,所以會涵蓋所有要載入中文資料所需要的知識。網路上雖然已經有很多很棒的R 教材,但是他們通常沒有描述如何處理中文資料。</li>
<li><strong>新</strong>。在2012年以後,R 的成長是非常快速的,所以教材會納入許多近年來被R 社群證實很棒的套件們。</li>
<li><strong>套件的使用與探索</strong>。R 的一大優勢就是蓬勃的套件系統。雖然教材中無法介紹所有的套件,但是會教同學如何探索一個第一次接觸的R 套件。</li>
<li><strong>互動</strong>。我們基於R Community貢獻的R 語言套件swirl 所撰寫的互動式學習環境,可以讓同學以最貼近實際使用R 的狀況來學R</li>
<li><strong>教材設計</strong>。每個單元的開始,我們設計大量的操作讓同學是透過用<strong>肌肉</strong>來記憶R 的指令。並且在單元的最後都擁有來自實務且具有挑戰性的關卡。</li>
<li><strong>自由</strong>。老師們可以很方便與自由地將本教材整合至您的教案之中。您可以將本教材當成同學學習R語言的補充教材,讓同學透過本教材學習如何處理政府的開放資料集。本教材不會涉獵過多的專業分析技術,而是把這些內容留給專業的老師們。有興趣合作的老師歡迎來信:<a href="mailto:wush@datascienceandr.org">wush@datascienceandr.org</a></li>
</ol>
<h2 id="2">2. 即時動態</h2>
<div class="well" style="height: 14em;"><ul id="records"></ul></div>
<h2 id="3">3. 線上體驗區(需參加實體課程)</h2>
<p>請有參加實體課程的同學打開: <a href="http://server.datascienceandr.org:28787">http://server.datascienceandr.org:28787</a></p>
<p>並依照課堂上給的帳號密碼登入。</p>
<p>有興趣的同學也歡迎聯繫我們(無論是在聊天室或是來信:<a href="mailto%3awush@datascienceandr.org">wush@datascienceandr.org</a>),取得線上體驗的帳號密碼。</p>
<h2 id="4">4. 快速安裝區</h2>
<p>同學可以參考以下的上手影片:</p>
<iframe width="560" height="315" src="https://www.youtube.com/embed/fcd6zSk0yd8" frameborder="0" allowfullscreen></iframe>
<p>或是依照以下的動作快速設定學習環境:</p>
<ol>
<li>安裝R</li>
<li>安裝Rstudio(Windows 使用者請安裝Rstudio或自備能夠編輯UTF-8 編碼的編輯器,OS X 與Linux使用者可依據自己喜好決定是否使用Rstudio)</li>
<li>打開R ,執行:<code>source("http://wush978.github.io/R/init-swirl.R")</code></li>
<li>輸入<code>library(swirl);swirl()</code>後即進入教學環境。</li>
<li>進入00-Hello-DataScienceAndR課程檢查你的電腦能不能執行本教材的所有功能,並瞭解本教材所提供的功能。</li>
</ol>
<p>有興趣了解安裝細節的同學,請操考:</p>
<ul>
<li><a href="https://github.com/wush978/DataScienceAndR/wiki/Windows-%E8%A8%AD%E5%AE%9A%E6%8C%87%E5%8D%97">Windows</a></li>
<li><a href="https://github.com/wush978/DataScienceAndR/wiki/Mac-OS-X-%E8%A8%AD%E5%AE%9A%E6%8C%87%E5%8D%97">Mac OS X</a></li>
<li><a href="https://github.com/wush978/DataScienceAndR/wiki/Ubuntu-%E8%A8%AD%E5%AE%9A%E6%8C%87%E5%8D%97">Ubuntu</a></li>
</ul>
<p>安裝上有問題,或是在執行00-Hello-DataScienceAndR不順利的同學請到<a href="#求助專區">求助專區</a>取得協助</p>
<h2 id="5">5. 互動式學習環境快速上手區</h2>
<p>在輸入<code>swirl()</code>之後,同學即進入R 的互動式學習環境(swirl環境)。請參考以下動作做操作:</p>
<h3 id="6">5.1. 1. 進入學習環境</h3>
<p><img src="http://i.imgur.com/sYGDy72.png" alt="Imgur" title="" /></p>
<p>ps. 如果你之前有進行過swirl的課程,swirl會出現下圖的選項詢問你是否要接關。請根據你的需求作答:</p>
<p><img src="http://i.imgur.com/SwlSa3W.png" alt="Imgur" title="" /></p>
<p>如不接關,請選取:<code>No. Let me start something new.</code></p>
<h3 id="7">5.2. 2. 選擇課程(Course)</h3>
<p><img src="http://i.imgur.com/Sfj0K1l.png" alt="Imgur" title="" /></p>
<h3 id="8">5.3. 3. 選擇你要進行的單元(Lesson)</h3>
<p><img src="http://i.imgur.com/OFgU4wM.png" alt="Imgur" title="" /></p>
<p>目前主要課程分成以下三塊:</p>
<ul>
<li>01-RBasic區:講解R 語言的基礎知識與使用方法。所有以下的課程都需要知道RBasic的知識。</li>
<li>02-RDataEngineer區:講解載入資料至R 語言,以及清理、整理資料的所需知識。</li>
<li>03-RVisualization區:介紹R的視覺化功能</li>
</ul>
<p>其他的課程,同學可以視自己的興趣決定要不要完成</p>
<ul>
<li>Optional-RProgramming區:介紹R 語言的程式功能。</li>
<li>Optional-RDataMining區:介紹R 語言在Data Mining中常用的套件。</li>
<li>Optional-RStatistic區:搭配實體課程所使用的swirl課程,不建議同學自行使用</li>
</ul>
<h2 id="9">6. 求助專區</h2>
<p>有問題的朋友,麻煩先註冊一個Github帳號後,可以到以下地方討論:</p>
<ul>
<li><a href="https://github.com/wush978/DataScienceAndR/issues">Issue回報區</a></li>
<li>Gitter聊天室:<a href="https://gitter.im/wush978/DataScienceAndR?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge"><img src="https://badges.gitter.im/wush978/DataScienceAndR.svg" alt="Gitter" title="" /></a></li>
</ul>
<h2 id="10">7. 緣起</h2>
<p>這個Repository主要是為了準備我在臺大的資料科學課程,幫陳老師講的兩堂R 的課程。課程素材主要就是投影片和swirl。內容則是參考CRAN上介紹R 的官方文件:<a href="https://cran.r-project.org/doc/manuals/R-intro.pdf">An Introduction to R</a>。
另外也要感謝社群中所有有參與籌備資料科學愛好者年會2015的同伴。</p>
<h2 id="11">8. 課程筆記</h2>
<p>以下連結記載swirl中的課程內容(sha-hash: a2ffbd1b 版本)</p>
<ul>
<li><a href="note/00-Hello-DataScienceAndR.html">00-Hello-DataScienceAndR</a></li>
<li><a href="note/01-RBasic-01-Introduction.html">01-RBasic-01-Introduction</a></li>
<li><a href="note/01-RBasic-02-Data-Structure-Vectors.html">01-RBasic-02-Data-Structure-Vectors</a></li>
<li><a href="note/01-RBasic-03-Data-Structure-Object.html">01-RBasic-03-Data-Structure-Object</a></li>
<li><a href="note/01-RBasic-04-Factors.html">01-RBasic-04-Factors</a></li>
<li><a href="note/01-RBasic-05-Arrays-Matrices.html">01-RBasic-05-Arrays-Matrices</a></li>
<li><a href="note/01-RBasic-06-List-DataFrame.html">01-RBasic-06-List-DataFrame</a></li>
<li><a href="note/01-RBasic-07-Loading-Dataset.html">01-RBasic-07-Loading-Dataset</a></li>
<li><a href="note/02-RDataEngineer-01-Parsing.html">02-RDataEngineer-01-Parsing</a></li>
<li><a href="note/02-RDataEngineer-02-XML.html">02-RDataEngineer-02-XML</a></li>
<li><a href="note/02-RDataEngineer-03-JSON.html">02-RDataEngineer-03-JSON</a></li>
<li><a href="note/02-RDataEngineer-04-Database.html">02-RDataEngineer-04-Database</a></li>
<li><a href="note/02-RDataEngineer-05-Data-Manipulation.html">02-RDataEngineer-05-Data-Manipulation</a></li>
<li><a href="note/02-RDataEngineer-06-Join.html">02-RDataEngineer-06-Join</a></li>
<li><a href="note/03-RVisualization-01-One-Variable-Visualization.html">03-RVisualization-01-One-Variable-Visualization</a></li>
<li><a href="note/03-RVisualization-02-Multiple-Variables-Visualization.html">03-RVisualization-02-Multiple-Variables-Visualization</a></li>
<li><a href="note/03-RVisualization-03-ggplot2.html">03-RVisualization-03-ggplot2</a></li>
<li><a href="note/03-RVisualization-04-Javascript-And-Maps.html">03-RVisualization-04-Javascript-And-Maps</a></li>
<li><a href="note/Optional-RProgramming-01-Loop-And-Condition.html">Optional-RProgramming-01-Loop-And-Condition</a></li>
<li><a href="note/Optional-RProgramming-02-Function.html">Optional-RProgramming-02-Function</a></li>
<li><a href="note/Project-ROpenData-DataTaipei.html">Project-ROpenData-DataTaipei</a></li>
<li><a href="note/Project-ROpenData-Power-GDP.html">Project-ROpenData-Power-GDP</a></li>
</ul>
<h2 id="12">9. 課程投影片</h2>
<p>以下連結是課程中使用的投影片</p>
<ul>
<li><a href="slide/RBasic-Introduction.html">RBasic-Introduction</a></li>
<li><a href="slide/RBasic-DataStructure.html">RBasic-DataStructure</a></li>
<li><a href="slide/RDataEngineer-Introduction.html">RDataEngineer-Introduction</a></li>
<li><a href="slide/RVisualization-Introduction.html">RVisualization-Introduction</a></li>
</ul>
<h2 id="13">10. License</h2>
<p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/tw/"><img alt="創用 CC 授權條款" style="border-width:0" src="https://i.creativecommons.org/l/by-sa/3.0/tw/88x31.png" /></a><br /><span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/Text" property="dct:title" rel="dct:type">Data Science and R</span>由<a xmlns:cc="http://creativecommons.org/ns#" href="https://github.com/wush978/DataScienceAndR" property="cc:attributionName" rel="cc:attributionURL">Wush Wu、Chih Cheng Liang和Johnson Hsieh</a>製作,以<a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/tw/">創用CC 姓名標示-相同方式分享 3.0 台灣 授權條款</a>釋出。</p>
</div>
</div>
</div>
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="bootstrap/js/jquery.js"></script>
<script src="bootstrap/js/google-code-prettify/prettify.js"></script>
<script src="bootstrap/js/bootstrap.js"></script>
<script type="text/javascript">prettyPrint();</script>
</body>
</html>