Skip to content

Commit

Permalink
Render site
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 21, 2025
1 parent 29748b2 commit d1b22c5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
8 changes: 4 additions & 4 deletions help.html
Original file line number Diff line number Diff line change
Expand Up @@ -347,14 +347,14 @@ <h2><strong>Why are my changes not taking effect? It’s making my results look
<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] 730 1885 424 560 500</code></pre>
<pre><code>## [1] 1054 250 291 300 230</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] 731 1886 425 561 501</code></pre>
<pre><code>## [1] 1055 251 292 301 231</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] 731 1886 425 561 501</code></pre>
<pre><code>## [1] 1055 251 292 301 231</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>
<hr />
</div>
Expand Down Expand Up @@ -403,7 +403,7 @@ <h2><strong>Error: object ‘X’ not found</strong></h2>
<p>Make sure you run something like this, with the <code>&lt;-</code> operator:</p>
<pre class="r"><code>rivers2 &lt;- new_rivers + 1
rivers2</code></pre>
<pre><code>## [1] 732 1887 426 562 502</code></pre>
<pre><code>## [1] 1056 252 293 302 232</code></pre>
<hr />
</div>
<div id="error-unexpected-in-error-unexpected-in-error-unexpected-x-in" class="section level2">
Expand Down
14 changes: 11 additions & 3 deletions modules/Data_Input/lab/Data_Input_Lab.html
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,17 @@ <h3>TROUBLESHOOTING: Common new user mistakes we have seen</h3>
<div id="section" class="section level3">
<h3>1.1</h3>
<p>Set up your R Project.</p>
<blockquote>
<p>File, New Project or click the new project button New Directory New Project Type a name and choose a location Check that the folder is there!</p>
</blockquote>
<ul>
<li>File, New Project or click the new project button<br />
</li>
<li>New Directory<br />
</li>
<li>New Project<br />
</li>
<li>Type a name and choose a location<br />
</li>
<li>Check that the folder is there!</li>
</ul>
<p>Check out our resource here: <a href="https://jhudatascience.org/intro_to_r/resources/R_Projects.html" class="uri">https://jhudatascience.org/intro_to_r/resources/R_Projects.html</a></p>
</div>
<div id="section-1" class="section level3">
Expand Down

0 comments on commit d1b22c5

Please sign in to comment.