Skip to content

Commit f0cd210

Browse files
committed
finished up the first block
1 parent 7557c83 commit f0cd210

25 files changed

+4076
-182
lines changed
File renamed without changes.

1_02_R_calculator.Rmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### Basic arithmetic
66

7-
At the end of the last chapter we saw that R can apparently handle familiar arithmetic operations: addition, subtraction, multiplication, division. If we want to add or subtract a pair of numbers just place the `+` or `-` symbol in between two numbers, hit Enter, and R will read the expression, evaluate it, and print the result to the Console. This works exactly as we expect it to:
7+
The end of the [Get up and running with R and RStudio] chapter demonstrated that R can handle familiar arithmetic operations: addition, subtraction, multiplication, division. If we want to add or subtract a pair of numbers just place the `+` or `-` symbol in between two numbers, hit Enter, and R will read the expression, evaluate it, and print the result to the Console. This works exactly as we expect it to:
88
```{r}
99
3 + 2
1010
5 - 1

docs/a-quick-introduction-to-r.html

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

2828

29-
<meta name="date" content="2017-02-07">
29+
<meta name="date" content="2017-02-08">
3030

3131
<meta name="viewport" content="width=device-width, initial-scale=1">
3232
<meta name="apple-mobile-web-app-capable" content="yes">
@@ -126,13 +126,13 @@
126126
<li><a href="./">APS 135 (R course)</a></li>
127127

128128
<li class="divider"></li>
129-
<li class="chapter" data-level="" data-path="index.html"><a href="index.html"><i class="fa fa-check"></i>Course information and overview</a><ul>
130-
<li class="chapter" data-level="" data-path="index.html"><a href="index.html#organisation"><i class="fa fa-check"></i>Organisation</a></li>
129+
<li class="chapter" data-level="" data-path="index.html"><a href="index.html"><i class="fa fa-check"></i>Information and overview</a><ul>
130+
<li class="chapter" data-level="0.1" data-path="index.html"><a href="index.html#aims"><i class="fa fa-check"></i><b>0.1</b> Aims</a><ul>
131+
<li class="chapter" data-level="0.1.1" data-path="index.html"><a href="index.html#topics"><i class="fa fa-check"></i><b>0.1.1</b> Topics</a></li>
131132
</ul></li>
132-
<li class="chapter" data-level="" data-path="expected-learning-outcomes.html"><a href="expected-learning-outcomes.html"><i class="fa fa-check"></i>Expected learning outcomes</a><ul>
133-
<li class="chapter" data-level="" data-path="expected-learning-outcomes.html"><a href="expected-learning-outcomes.html#introduction-to-r"><i class="fa fa-check"></i>Introduction to R</a></li>
134-
<li class="chapter" data-level="" data-path="expected-learning-outcomes.html"><a href="expected-learning-outcomes.html#data-wrangling"><i class="fa fa-check"></i>Data Wrangling</a></li>
135-
<li class="chapter" data-level="" data-path="expected-learning-outcomes.html"><a href="expected-learning-outcomes.html#exporing-data"><i class="fa fa-check"></i>Exporing Data</a></li>
133+
<li class="chapter" data-level="0.2" data-path="index.html"><a href="index.html#howto-use"><i class="fa fa-check"></i><b>0.2</b> How to use the book</a></li>
134+
<li class="chapter" data-level="0.3" data-path="index.html"><a href="index.html#help"><i class="fa fa-check"></i><b>0.3</b> Getting help</a></li>
135+
<li class="chapter" data-level="0.4" data-path="index.html"><a href="index.html#updates"><i class="fa fa-check"></i><b>0.4</b> Updates</a></li>
136136
</ul></li>
137137
<li class="chapter" data-level="" 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>Get up and running with R and RStudio</a><ul>
138138
<li class="chapter" data-level="" 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>What is R?</a><ul>
@@ -213,13 +213,6 @@
213213
</ul></li>
214214
<li class="part"><span><b>II Data Wrangling</b></span></li>
215215
<li class="part"><span><b>III Exporing Data</b></span></li>
216-
<li class="chapter" data-level="9" data-path="stuff.html"><a href="stuff.html"><i class="fa fa-check"></i><b>9</b> Stuff…</a><ul>
217-
<li class="chapter" data-level="9.1" data-path="stuff.html"><a href="stuff.html#mathematical-functions-in-r"><i class="fa fa-check"></i><b>9.1</b> Mathematical functions in R</a></li>
218-
<li class="chapter" data-level="9.2" data-path="stuff.html"><a href="stuff.html#coding-conventions"><i class="fa fa-check"></i><b>9.2</b> Coding conventions</a><ul>
219-
<li class="chapter" data-level="9.2.1" data-path="stuff.html"><a href="stuff.html#formatting-functions"><i class="fa fa-check"></i><b>9.2.1</b> Formatting functions</a></li>
220-
</ul></li>
221-
<li class="chapter" data-level="9.3" data-path="stuff.html"><a href="stuff.html#data-structures"><i class="fa fa-check"></i><b>9.3</b> Beyond vectors</a></li>
222-
</ul></li>
223216
<li class="divider"></li>
224217
<li><a href="https://github.com/rstudio/bookdown" target="blank">Published with bookdown</a></li>
225218

@@ -246,7 +239,7 @@ <h1><span class="header-section-number">Chapter 1</span> A quick introduction to
246239
<h2><span class="header-section-number">1.1</span> Using R as a big calculator</h2>
247240
<div id="basic-arithmetic" class="section level3">
248241
<h3><span class="header-section-number">1.1.1</span> Basic arithmetic</h3>
249-
<p>At the end of the last chapter we saw that R can apparently handle familiar arithmetic operations: addition, subtraction, multiplication, division. If we want to add or subtract a pair of numbers just place the <code>+</code> or <code>-</code> symbol in between two numbers, hit Enter, and R will read the expression, evaluate it, and print the result to the Console. This works exactly as we expect it to:</p>
242+
<p>The end of the <a href="get-up-and-running-with-r-and-rstudio.html#get-up-and-running-with-r-and-rstudio">Get up and running with R and RStudio</a> chapter demonstrated that R can handle familiar arithmetic operations: addition, subtraction, multiplication, division. If we want to add or subtract a pair of numbers just place the <code>+</code> or <code>-</code> symbol in between two numbers, hit Enter, and R will read the expression, evaluate it, and print the result to the Console. This works exactly as we expect it to:</p>
250243
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="dv">3</span> +<span class="st"> </span><span class="dv">2</span></code></pre></div>
251244
<pre><code>## [1] 5</code></pre>
252245
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="dv">5</span> -<span class="st"> </span><span class="dv">1</span></code></pre></div>

docs/expected-learning-outcomes.html

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

2828

29-
<meta name="date" content="2017-02-07">
29+
<meta name="date" content="2017-02-08">
3030

3131
<meta name="viewport" content="width=device-width, initial-scale=1">
3232
<meta name="apple-mobile-web-app-capable" content="yes">
@@ -213,13 +213,6 @@
213213
</ul></li>
214214
<li class="part"><span><b>II Data Wrangling</b></span></li>
215215
<li class="part"><span><b>III Exporing Data</b></span></li>
216-
<li class="chapter" data-level="9" data-path="stuff.html"><a href="stuff.html"><i class="fa fa-check"></i><b>9</b> Stuff…</a><ul>
217-
<li class="chapter" data-level="9.1" data-path="stuff.html"><a href="stuff.html#mathematical-functions-in-r"><i class="fa fa-check"></i><b>9.1</b> Mathematical functions in R</a></li>
218-
<li class="chapter" data-level="9.2" data-path="stuff.html"><a href="stuff.html#coding-conventions"><i class="fa fa-check"></i><b>9.2</b> Coding conventions</a><ul>
219-
<li class="chapter" data-level="9.2.1" data-path="stuff.html"><a href="stuff.html#formatting-functions"><i class="fa fa-check"></i><b>9.2.1</b> Formatting functions</a></li>
220-
</ul></li>
221-
<li class="chapter" data-level="9.3" data-path="stuff.html"><a href="stuff.html#data-structures"><i class="fa fa-check"></i><b>9.3</b> Beyond vectors</a></li>
222-
</ul></li>
223216
<li class="divider"></li>
224217
<li><a href="https://github.com/rstudio/bookdown" target="blank">Published with bookdown</a></li>
225218

docs/extracting-subsets-of-vectors.html

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

2828

29-
<meta name="date" content="2017-02-07">
29+
<meta name="date" content="2017-02-08">
3030

3131
<meta name="viewport" content="width=device-width, initial-scale=1">
3232
<meta name="apple-mobile-web-app-capable" content="yes">
@@ -126,13 +126,13 @@
126126
<li><a href="./">APS 135 (R course)</a></li>
127127

128128
<li class="divider"></li>
129-
<li class="chapter" data-level="" data-path="index.html"><a href="index.html"><i class="fa fa-check"></i>Course information and overview</a><ul>
130-
<li class="chapter" data-level="" data-path="index.html"><a href="index.html#organisation"><i class="fa fa-check"></i>Organisation</a></li>
129+
<li class="chapter" data-level="" data-path="index.html"><a href="index.html"><i class="fa fa-check"></i>Information and overview</a><ul>
130+
<li class="chapter" data-level="0.1" data-path="index.html"><a href="index.html#aims"><i class="fa fa-check"></i><b>0.1</b> Aims</a><ul>
131+
<li class="chapter" data-level="0.1.1" data-path="index.html"><a href="index.html#topics"><i class="fa fa-check"></i><b>0.1.1</b> Topics</a></li>
131132
</ul></li>
132-
<li class="chapter" data-level="" data-path="expected-learning-outcomes.html"><a href="expected-learning-outcomes.html"><i class="fa fa-check"></i>Expected learning outcomes</a><ul>
133-
<li class="chapter" data-level="" data-path="expected-learning-outcomes.html"><a href="expected-learning-outcomes.html#introduction-to-r"><i class="fa fa-check"></i>Introduction to R</a></li>
134-
<li class="chapter" data-level="" data-path="expected-learning-outcomes.html"><a href="expected-learning-outcomes.html#data-wrangling"><i class="fa fa-check"></i>Data Wrangling</a></li>
135-
<li class="chapter" data-level="" data-path="expected-learning-outcomes.html"><a href="expected-learning-outcomes.html#exporing-data"><i class="fa fa-check"></i>Exporing Data</a></li>
133+
<li class="chapter" data-level="0.2" data-path="index.html"><a href="index.html#howto-use"><i class="fa fa-check"></i><b>0.2</b> How to use the book</a></li>
134+
<li class="chapter" data-level="0.3" data-path="index.html"><a href="index.html#help"><i class="fa fa-check"></i><b>0.3</b> Getting help</a></li>
135+
<li class="chapter" data-level="0.4" data-path="index.html"><a href="index.html#updates"><i class="fa fa-check"></i><b>0.4</b> Updates</a></li>
136136
</ul></li>
137137
<li class="chapter" data-level="" 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>Get up and running with R and RStudio</a><ul>
138138
<li class="chapter" data-level="" 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>What is R?</a><ul>
@@ -213,13 +213,6 @@
213213
</ul></li>
214214
<li class="part"><span><b>II Data Wrangling</b></span></li>
215215
<li class="part"><span><b>III Exporing Data</b></span></li>
216-
<li class="chapter" data-level="9" data-path="stuff.html"><a href="stuff.html"><i class="fa fa-check"></i><b>9</b> Stuff…</a><ul>
217-
<li class="chapter" data-level="9.1" data-path="stuff.html"><a href="stuff.html#mathematical-functions-in-r"><i class="fa fa-check"></i><b>9.1</b> Mathematical functions in R</a></li>
218-
<li class="chapter" data-level="9.2" data-path="stuff.html"><a href="stuff.html#coding-conventions"><i class="fa fa-check"></i><b>9.2</b> Coding conventions</a><ul>
219-
<li class="chapter" data-level="9.2.1" data-path="stuff.html"><a href="stuff.html#formatting-functions"><i class="fa fa-check"></i><b>9.2.1</b> Formatting functions</a></li>
220-
</ul></li>
221-
<li class="chapter" data-level="9.3" data-path="stuff.html"><a href="stuff.html#data-structures"><i class="fa fa-check"></i><b>9.3</b> Beyond vectors</a></li>
222-
</ul></li>
223216
<li class="divider"></li>
224217
<li><a href="https://github.com/rstudio/bookdown" target="blank">Published with bookdown</a></li>
225218

docs/get-up-and-running-with-r-and-rstudio.html

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

2828

29-
<meta name="date" content="2017-02-07">
29+
<meta name="date" content="2017-02-08">
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

36-
<link rel="prev" href="expected-learning-outcomes.html">
36+
<link rel="prev" href="index.html">
3737
<link rel="next" href="a-quick-introduction-to-r.html">
3838

3939
<script src="libs/jquery-2.2.3/jquery.min.js"></script>
@@ -126,13 +126,13 @@
126126
<li><a href="./">APS 135 (R course)</a></li>
127127

128128
<li class="divider"></li>
129-
<li class="chapter" data-level="" data-path="index.html"><a href="index.html"><i class="fa fa-check"></i>Course information and overview</a><ul>
130-
<li class="chapter" data-level="" data-path="index.html"><a href="index.html#organisation"><i class="fa fa-check"></i>Organisation</a></li>
129+
<li class="chapter" data-level="" data-path="index.html"><a href="index.html"><i class="fa fa-check"></i>Information and overview</a><ul>
130+
<li class="chapter" data-level="0.1" data-path="index.html"><a href="index.html#aims"><i class="fa fa-check"></i><b>0.1</b> Aims</a><ul>
131+
<li class="chapter" data-level="0.1.1" data-path="index.html"><a href="index.html#topics"><i class="fa fa-check"></i><b>0.1.1</b> Topics</a></li>
131132
</ul></li>
132-
<li class="chapter" data-level="" data-path="expected-learning-outcomes.html"><a href="expected-learning-outcomes.html"><i class="fa fa-check"></i>Expected learning outcomes</a><ul>
133-
<li class="chapter" data-level="" data-path="expected-learning-outcomes.html"><a href="expected-learning-outcomes.html#introduction-to-r"><i class="fa fa-check"></i>Introduction to R</a></li>
134-
<li class="chapter" data-level="" data-path="expected-learning-outcomes.html"><a href="expected-learning-outcomes.html#data-wrangling"><i class="fa fa-check"></i>Data Wrangling</a></li>
135-
<li class="chapter" data-level="" data-path="expected-learning-outcomes.html"><a href="expected-learning-outcomes.html#exporing-data"><i class="fa fa-check"></i>Exporing Data</a></li>
133+
<li class="chapter" data-level="0.2" data-path="index.html"><a href="index.html#howto-use"><i class="fa fa-check"></i><b>0.2</b> How to use the book</a></li>
134+
<li class="chapter" data-level="0.3" data-path="index.html"><a href="index.html#help"><i class="fa fa-check"></i><b>0.3</b> Getting help</a></li>
135+
<li class="chapter" data-level="0.4" data-path="index.html"><a href="index.html#updates"><i class="fa fa-check"></i><b>0.4</b> Updates</a></li>
136136
</ul></li>
137137
<li class="chapter" data-level="" 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>Get up and running with R and RStudio</a><ul>
138138
<li class="chapter" data-level="" 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>What is R?</a><ul>
@@ -213,13 +213,6 @@
213213
</ul></li>
214214
<li class="part"><span><b>II Data Wrangling</b></span></li>
215215
<li class="part"><span><b>III Exporing Data</b></span></li>
216-
<li class="chapter" data-level="9" data-path="stuff.html"><a href="stuff.html"><i class="fa fa-check"></i><b>9</b> Stuff…</a><ul>
217-
<li class="chapter" data-level="9.1" data-path="stuff.html"><a href="stuff.html#mathematical-functions-in-r"><i class="fa fa-check"></i><b>9.1</b> Mathematical functions in R</a></li>
218-
<li class="chapter" data-level="9.2" data-path="stuff.html"><a href="stuff.html#coding-conventions"><i class="fa fa-check"></i><b>9.2</b> Coding conventions</a><ul>
219-
<li class="chapter" data-level="9.2.1" data-path="stuff.html"><a href="stuff.html#formatting-functions"><i class="fa fa-check"></i><b>9.2.1</b> Formatting functions</a></li>
220-
</ul></li>
221-
<li class="chapter" data-level="9.3" data-path="stuff.html"><a href="stuff.html#data-structures"><i class="fa fa-check"></i><b>9.3</b> Beyond vectors</a></li>
222-
</ul></li>
223216
<li class="divider"></li>
224217
<li><a href="https://github.com/rstudio/bookdown" target="blank">Published with bookdown</a></li>
225218

@@ -350,7 +343,7 @@ <h2>Working at the Console</h2>
350343
</div>
351344
</div>
352345
</div>
353-
<a href="expected-learning-outcomes.html" class="navigation navigation-prev " aria-label="Previous page"><i class="fa fa-angle-left"></i></a>
346+
<a href="index.html" class="navigation navigation-prev " aria-label="Previous page"><i class="fa fa-angle-left"></i></a>
354347
<a href="a-quick-introduction-to-r.html" class="navigation navigation-next " aria-label="Next page""><i class="fa fa-angle-right"></i></a>
355348

356349
<script src="libs/gitbook-2.6.7/js/app.min.js"></script>
@@ -379,7 +372,7 @@ <h2>Working at the Console</h2>
379372
"size": 2
380373
},
381374
"edit": {
382-
"link": "https://github.com/dzchilds/eda-for-bio/edit/master/0_02_R_and_RStudio.Rmd",
375+
"link": "https://github.com/dzchilds/eda-for-bio/edit/master/0_01_R_and_RStudio.Rmd",
383376
"text": "Edit"
384377
},
385378
"download": null,

0 commit comments

Comments
 (0)