Skip to content

Commit 9cc112c

Browse files
committed
Update the book
1 parent dbc221a commit 9cc112c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/r-objects.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ <h2><span class="header-section-number">5.1</span> Atomic Vectors</h2>
388388
<pre class="sourceCode r"><code class="sourceCode r">int &lt;-<span class="st"> </span><span class="kw">c</span>(1L, 5L)
389389
text &lt;-<span class="st"> </span><span class="kw">c</span>(<span class="st">&quot;ace&quot;</span>, <span class="st">&quot;hearts&quot;</span>)</code></pre>
390390
<p>You may wonder why R uses multiple types of vectors. Vector types help R behave as you would expect. For example, R will do math with atomic vectors that contain numbers, but not with atomic vectors that contain character strings:</p>
391-
<pre class="sourceCode r"><code class="sourceCode r"><span class="kw">sum</span>(int)
391+
<pre class="sourceCode r"><code class="sourceCode r"><span class="kw">sum</span>(num)
392392
## 6
393393

394394
<span class="kw">sum</span>(text)

0 commit comments

Comments
 (0)