Skip to content

Commit

Permalink
Update the book
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettgman committed Nov 12, 2018
1 parent dbc221a commit 9cc112c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/r-objects.html
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ <h2><span class="header-section-number">5.1</span> Atomic Vectors</h2>
<pre class="sourceCode r"><code class="sourceCode r">int &lt;-<span class="st"> </span><span class="kw">c</span>(1L, 5L)
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>
<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>
<pre class="sourceCode r"><code class="sourceCode r"><span class="kw">sum</span>(int)
<pre class="sourceCode r"><code class="sourceCode r"><span class="kw">sum</span>(num)
## 6

<span class="kw">sum</span>(text)
Expand Down
Loading

0 comments on commit 9cc112c

Please sign in to comment.