Skip to content

Commit

Permalink
Render site
Browse files Browse the repository at this point in the history
  • Loading branch information
jhudsl-robot committed Oct 31, 2023
1 parent 6c9e791 commit 6f3a163
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions help.html
Original file line number Diff line number Diff line change
Expand Up @@ -356,16 +356,16 @@ <h2><strong>Why are my changes not taking effect? It’s making my results
<p>Here we are creating a new object from an existing one:</p>
<pre class="r"><code>new_rivers &lt;- sample(rivers, 5)
new_rivers</code></pre>
<pre><code>## [1] 620 529 336 420 392</code></pre>
<pre><code>## [1] 560 375 420 906 460</code></pre>
<p>Using just this will only print the result and not actually change
<code>new_rivers</code>:</p>
<pre class="r"><code>new_rivers + 1</code></pre>
<pre><code>## [1] 621 530 337 421 393</code></pre>
<pre><code>## [1] 561 376 421 907 461</code></pre>
<p>If we want to modify <code>new_rivers</code> and save that modified
version, then we need to reassign <code>new_rivers</code> like so:</p>
<pre class="r"><code>new_rivers &lt;- new_rivers + 1
new_rivers</code></pre>
<pre><code>## [1] 621 530 337 421 393</code></pre>
<pre><code>## [1] 561 376 421 907 461</code></pre>
<p>If we forget to reassign this can cause subsequent steps to not work
as expected because we will not be working with the data that has been
modified.</p>
Expand Down Expand Up @@ -413,7 +413,7 @@ <h2><strong><code>Error: object 'X' not found</code></strong></h2>
operator:</p>
<pre class="r"><code>rivers2 &lt;- new_rivers + 1
rivers2</code></pre>
<pre><code>## [1] 622 531 338 422 394</code></pre>
<pre><code>## [1] 562 377 422 908 462</code></pre>
<hr />
</div>
<div
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ <h2>Find an Error!?</h2>
associated with the class: <a
href="https://github.com/jhudsl/intro_to_r"
class="uri">https://github.com/jhudsl/intro_to_r</a></p>
<p>This page was last updated on 2023-10-26.</p>
<p>This page was last updated on 2023-10-31.</p>
<p style="text-align:center;">
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://live.staticflickr.com/4557/26350808799_6f9c8bcaa2_b.jpg" height="150"/>
</a>
Expand Down

0 comments on commit 6f3a163

Please sign in to comment.