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 8, 2025
1 parent 4648a50 commit 21fff34
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
8 changes: 4 additions & 4 deletions help.html
Original file line number Diff line number Diff line change
Expand Up @@ -353,14 +353,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] 560 360 380 217 450</code></pre>
<pre><code>## [1] 570 460 135 301 320</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] 561 361 381 218 451</code></pre>
<pre><code>## [1] 571 461 136 302 321</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] 561 361 381 218 451</code></pre>
<pre><code>## [1] 571 461 136 302 321</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 @@ -409,7 +409,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] 562 362 382 219 452</code></pre>
<pre><code>## [1] 572 462 137 303 322</code></pre>
<hr />
</div>
<div id="error-unexpected-in-error-unexpected-in-error-unexpected-x-in" class="section level2">
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ <h2>Testimonials from our other courses:</h2>
<h2>Find an Error!?</h2>
<hr />
<p>Feel free to submit typos/errors/etc via the GitHub repository associated with the class: <a href="https://github.com/fhdsl/DaSEH" class="uri">https://github.com/fhdsl/DaSEH</a></p>
<p>This page was last updated on 2024-12-06.</p>
<p>This page was last updated on 2025-01-08.</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>
</p>
Expand Down
2 changes: 2 additions & 0 deletions modules/Data_Cleaning/lab/Data_Cleaning_Lab.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ library(naniar)

Read in the CalEnviroScreen data using `read_csv` and the URL https://daseh.org/data/CalEnviroScreen_data.csv

Assign this dataset to an object called "ces"

```{r 1.0response}
```
Expand Down
15 changes: 13 additions & 2 deletions modules/Data_Cleaning/lab/Data_Cleaning_Lab_Key.html
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,21 @@ <h1 class="title toc-ignore">Data Cleaning Lab - Key</h1>

<div id="part-1" class="section level1">
<h1>Part 1</h1>
<pre class="r"><code>library(tidyverse)
# install.packages(&quot;naniar&quot;)
<pre class="r"><code>library(tidyverse)</code></pre>
<pre><code>## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
## ✔ dplyr 1.1.4 ✔ readr 2.1.5
## ✔ forcats 1.0.0 ✔ stringr 1.5.1
## ✔ ggplot2 3.5.1 ✔ tibble 3.2.1
## ✔ lubridate 1.9.3 ✔ tidyr 1.3.1
## ✔ purrr 1.0.2
## ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
## ✖ dplyr::filter() masks stats::filter()
## ✖ dplyr::lag() masks stats::lag()
## ℹ Use the conflicted package (&lt;http://conflicted.r-lib.org/&gt;) to force all conflicts to become errors</code></pre>
<pre class="r"><code># install.packages(&quot;naniar&quot;)
library(naniar)</code></pre>
<p>Read in the CalEnviroScreen data using <code>read_csv</code> and the URL <a href="https://daseh.org/data/CalEnviroScreen_data.csv" class="uri">https://daseh.org/data/CalEnviroScreen_data.csv</a></p>
<p>Assign this dataset to an object called “ces”</p>
<pre class="r"><code>ces &lt;- read_csv(file = &quot;https://daseh.org/data/CalEnviroScreen_data.csv&quot;)</code></pre>
<pre><code>## Rows: 8035 Columns: 67
## ── Column specification ────────────────────────────────────────────────────────
Expand Down

0 comments on commit 21fff34

Please sign in to comment.