Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/fhdsl/DaSEH
Browse files Browse the repository at this point in the history
  • Loading branch information
avahoffman committed Mar 29, 2024
2 parents 0f774b1 + 8d700c7 commit 19ee722
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions help.html
Original file line number Diff line number Diff line change
Expand Up @@ -405,16 +405,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] 605 260 230 306 1038</code></pre>
<pre><code>## [1] 1243 2533 310 250 377</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] 606 261 231 307 1039</code></pre>
<pre><code>## [1] 1244 2534 311 251 378</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] 606 261 231 307 1039</code></pre>
<pre><code>## [1] 1244 2534 311 251 378</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 @@ -484,7 +484,7 @@ <h2><strong>Error: object ‘X’ not found</strong></h2>
operator:</p>
<pre class="r"><code>rivers2 &lt;- new_rivers + 1
rivers2</code></pre>
<pre><code>## [1] 607 262 232 308 1040</code></pre>
<pre><code>## [1] 1245 2535 312 252 379</code></pre>
<hr />
</div>
<div id="error-unexpected-in-error-unexpected-in-error-unexpected-x-in"
Expand Down
7 changes: 3 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@



<title> Introduction to R for Public Health Researchers </title>
<title> </title>

<script src="site_libs/header-attrs-2.26/header-attrs.js"></script>
<script src="site_libs/jquery-3.6.0/jquery-3.6.0.min.js"></script>
Expand Down Expand Up @@ -282,9 +282,8 @@



<h1 class="title toc-ignore"><p><img src="docs/images/Intro_to_R.png"
style="padding-right: 20px" align="left" width="120" /> Introduction to
R for Public Health Researchers <br></p></h1>
<h1 class="title toc-ignore"><p><img
src="images/logo_big_font2_banner_wide.png" /> <br></p></h1>

</div>

Expand Down
Binary file modified modules/Intro/Intro.pdf
Binary file not shown.

0 comments on commit 19ee722

Please sign in to comment.