Skip to content

Commit 485850c

Browse files
committed
First chapter done + new box types added
1 parent 0530942 commit 485850c

40 files changed

+1191
-605
lines changed

1_00.Rmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Introduction to R {-}
1+
# (PART) Introduction to R {-}
22

1_01_R_and_RStudio.Rmd

+114
Large diffs are not rendered by default.

1_02_R_calculator.Rmd

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Using R as a calculator
2+
3+
```{block, type="warning"}
4+
Working directly at the Console like this is the simplest way to use R. Generally speaking, we do not recommend working this way unless you only need to do something very simple which involves a handful of steps. For more complicated activities you should store your instructions in a script. We will look at how to do this at the end of this topic. The aim of this section is to demonstrate how to use R to perform simple calculations and introduce a few key concepts that will help you understand how R works. At this stage -- for the purposes of learning how to use R -- typing expressions directly into the Console is fine.
5+
```

2_00.Rmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Data Wrangling {-}
1+
# (PART) Data Wrangling {-}
22

3_00.Rmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Exporing Data {-}
1+
# (PART) Exporing Data {-}
22

_book/data-wrangling-1.html

-177
This file was deleted.

_book/data-wrangling.html

Whitespace-only changes.

_book/expected-learning-outcomes.html

+70-24
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@
2626
<meta name="author" content="Dylan Z. Childs">
2727

2828

29-
<meta name="date" content="2017-01-13">
29+
<meta name="date" content="2017-01-15">
3030

3131
<meta name="viewport" content="width=device-width, initial-scale=1">
3232
<meta name="apple-mobile-web-app-capable" content="yes">
3333
<meta name="apple-mobile-web-app-status-bar-style" content="black">
3434

3535

3636
<link rel="prev" href="index.html">
37-
<link rel="next" href="introduction-to-r-1.html">
37+
<link rel="next" href="get-up-and-running-with-r-and-rstudio.html">
3838

3939
<script src="libs/jquery-2.2.3/jquery.min.js"></script>
4040
<link href="libs/gitbook-2.6.7/css/style.css" rel="stylesheet" />
@@ -51,30 +51,61 @@
5151

5252
<style type="text/css">
5353

54-
.warning-box {
55-
border: 3px solid #e60000;
56-
margin: 25px;
57-
padding: 10px 10px 5px 10px;
58-
border-radius: 6px 6px 6px 6px;
54+
.action, .warning, .info {
55+
padding: 1em 1em 1em 4em;
56+
margin-bottom: 10px;
57+
background: #f5f5f5 5px center/3em no-repeat;
5958
}
60-
61-
.advanced-box {
62-
border: 3px solid #268bd2;
63-
margin: 25px;
64-
padding: 10px 10px 5px 10px;
65-
border-radius: 6px 6px 6px 6px;
59+
.action {
60+
background-image: url("./images/action.png");
6661
}
67-
68-
.do-something {
69-
border: 3px solid #803e00;
70-
margin: 25px;
71-
padding: 10px 10px 5px 10px;
72-
border-radius: 6px 6px 6px 6px;
62+
.warning {
63+
background-image: url("./images/warning.png");
64+
}
65+
.info {
66+
background-image: url("./images/info.png");
7367
}
7468

7569
</style>
7670

7771

72+
<style type="text/css">
73+
div.sourceCode { overflow-x: auto; }
74+
table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode {
75+
margin: 0; padding: 0; vertical-align: baseline; border: none; }
76+
table.sourceCode { width: 100%; line-height: 100%; }
77+
td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; color: #aaaaaa; border-right: 1px solid #aaaaaa; }
78+
td.sourceCode { padding-left: 5px; }
79+
code > span.kw { color: #007020; font-weight: bold; } /* Keyword */
80+
code > span.dt { color: #902000; } /* DataType */
81+
code > span.dv { color: #40a070; } /* DecVal */
82+
code > span.bn { color: #40a070; } /* BaseN */
83+
code > span.fl { color: #40a070; } /* Float */
84+
code > span.ch { color: #4070a0; } /* Char */
85+
code > span.st { color: #4070a0; } /* String */
86+
code > span.co { color: #60a0b0; font-style: italic; } /* Comment */
87+
code > span.ot { color: #007020; } /* Other */
88+
code > span.al { color: #ff0000; font-weight: bold; } /* Alert */
89+
code > span.fu { color: #06287e; } /* Function */
90+
code > span.er { color: #ff0000; font-weight: bold; } /* Error */
91+
code > span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
92+
code > span.cn { color: #880000; } /* Constant */
93+
code > span.sc { color: #4070a0; } /* SpecialChar */
94+
code > span.vs { color: #4070a0; } /* VerbatimString */
95+
code > span.ss { color: #bb6688; } /* SpecialString */
96+
code > span.im { } /* Import */
97+
code > span.va { color: #19177c; } /* Variable */
98+
code > span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
99+
code > span.op { color: #666666; } /* Operator */
100+
code > span.bu { } /* BuiltIn */
101+
code > span.ex { } /* Extension */
102+
code > span.pp { color: #bc7a00; } /* Preprocessor */
103+
code > span.at { color: #7d9029; } /* Attribute */
104+
code > span.do { color: #ba2121; font-style: italic; } /* Documentation */
105+
code > span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
106+
code > span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
107+
code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
108+
</style>
78109

79110
<link rel="stylesheet" href="style.css" type="text/css" />
80111
</head>
@@ -92,16 +123,27 @@
92123

93124
<li class="divider"></li>
94125
<li class="chapter" data-level="1" data-path="index.html"><a href="index.html"><i class="fa fa-check"></i><b>1</b> Course information and overview</a><ul>
95-
<li class="chapter" data-level="1.1" data-path="index.html"><a href="index.html#why-R"><i class="fa fa-check"></i><b>1.1</b> Why learn R?</a></li>
126+
<li class="chapter" data-level="1.1" data-path="index.html"><a href="index.html#organisation"><i class="fa fa-check"></i><b>1.1</b> Organisation</a></li>
96127
</ul></li>
97128
<li class="chapter" data-level="2" data-path="expected-learning-outcomes.html"><a href="expected-learning-outcomes.html"><i class="fa fa-check"></i><b>2</b> Expected learning outcomes</a><ul>
98129
<li class="chapter" data-level="2.1" data-path="expected-learning-outcomes.html"><a href="expected-learning-outcomes.html#introduction-to-r"><i class="fa fa-check"></i><b>2.1</b> Introduction to R</a></li>
99130
<li class="chapter" data-level="2.2" data-path="expected-learning-outcomes.html"><a href="expected-learning-outcomes.html#data-wrangling"><i class="fa fa-check"></i><b>2.2</b> Data Wrangling</a></li>
100131
<li class="chapter" data-level="2.3" data-path="expected-learning-outcomes.html"><a href="expected-learning-outcomes.html#exporing-data"><i class="fa fa-check"></i><b>2.3</b> Exporing Data</a></li>
101132
</ul></li>
102-
<li class="chapter" data-level="" data-path="introduction-to-r-1.html"><a href="introduction-to-r-1.html"><i class="fa fa-check"></i>Introduction to R</a></li>
103-
<li class="chapter" data-level="" data-path="data-wrangling-1.html"><a href="data-wrangling-1.html"><i class="fa fa-check"></i>Data Wrangling</a></li>
104-
<li class="chapter" data-level="" data-path="exporing-data-1.html"><a href="exporing-data-1.html"><i class="fa fa-check"></i>Exporing Data</a></li>
133+
<li class="part"><span><b>I Introduction to R</b></span></li>
134+
<li class="chapter" data-level="3" data-path="get-up-and-running-with-r-and-rstudio.html"><a href="get-up-and-running-with-r-and-rstudio.html"><i class="fa fa-check"></i><b>3</b> Get up and running with R and RStudio</a><ul>
135+
<li class="chapter" data-level="3.1" data-path="get-up-and-running-with-r-and-rstudio.html"><a href="get-up-and-running-with-r-and-rstudio.html#what-is-r"><i class="fa fa-check"></i><b>3.1</b> What is R?</a><ul>
136+
<li class="chapter" data-level="3.1.1" data-path="get-up-and-running-with-r-and-rstudio.html"><a href="get-up-and-running-with-r-and-rstudio.html#getting-and-installing-r"><i class="fa fa-check"></i><b>3.1.1</b> Getting and installing R</a></li>
137+
</ul></li>
138+
<li class="chapter" data-level="3.2" data-path="get-up-and-running-with-r-and-rstudio.html"><a href="get-up-and-running-with-r-and-rstudio.html#what-is-rstudio"><i class="fa fa-check"></i><b>3.2</b> What is RStudio (and why use it)?</a><ul>
139+
<li class="chapter" data-level="3.2.1" data-path="get-up-and-running-with-r-and-rstudio.html"><a href="get-up-and-running-with-r-and-rstudio.html#getting-and-installing-rstudio"><i class="fa fa-check"></i><b>3.2.1</b> Getting and installing RStudio</a></li>
140+
<li class="chapter" data-level="3.2.2" data-path="get-up-and-running-with-r-and-rstudio.html"><a href="get-up-and-running-with-r-and-rstudio.html#the-anatomy-of-rstudio"><i class="fa fa-check"></i><b>3.2.2</b> The anatomy of RStudio</a></li>
141+
</ul></li>
142+
<li class="chapter" data-level="3.3" data-path="get-up-and-running-with-r-and-rstudio.html"><a href="get-up-and-running-with-r-and-rstudio.html#Console"><i class="fa fa-check"></i><b>3.3</b> Working at the Console</a></li>
143+
</ul></li>
144+
<li class="chapter" data-level="4" data-path="using-r-as-a-calculator.html"><a href="using-r-as-a-calculator.html"><i class="fa fa-check"></i><b>4</b> Using R as a calculator</a></li>
145+
<li class="part"><span><b>II Data Wrangling</b></span></li>
146+
<li class="part"><span><b>III Exporing Data</b></span></li>
105147
<li class="divider"></li>
106148
<li><a href="https://github.com/rstudio/bookdown" target="blank">Published with bookdown</a></li>
107149

@@ -134,14 +176,18 @@ <h2><span class="header-section-number">2.2</span> Data Wrangling</h2>
134176
<h2><span class="header-section-number">2.3</span> Exporing Data</h2>
135177

136178
</div>
179+
</div>
180+
181+
182+
137183
</div>
138184
</section>
139185

140186
</div>
141187
</div>
142188
</div>
143189
<a href="index.html" class="navigation navigation-prev " aria-label="Previous page"><i class="fa fa-angle-left"></i></a>
144-
<a href="introduction-to-r-1.html" class="navigation navigation-next " aria-label="Next page""><i class="fa fa-angle-right"></i></a>
190+
<a href="get-up-and-running-with-r-and-rstudio.html" class="navigation navigation-next " aria-label="Next page""><i class="fa fa-angle-right"></i></a>
145191

146192
<script src="libs/gitbook-2.6.7/js/app.min.js"></script>
147193
<script src="libs/gitbook-2.6.7/js/lunr.js"></script>

0 commit comments

Comments
 (0)