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 9, 2025
1 parent 20694ab commit 8aa77b1
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 92 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] 340 330 720 1038 524</code></pre>
<pre><code>## [1] 360 392 352 625 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] 341 331 721 1039 525</code></pre>
<pre><code>## [1] 361 393 353 626 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] 341 331 721 1039 525</code></pre>
<pre><code>## [1] 361 393 353 626 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>
<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] 342 332 722 1040 526</code></pre>
<pre><code>## [1] 362 394 354 627 462</code></pre>
<hr />
</div>
<div id="error-unexpected-in-error-unexpected-in-error-unexpected-x-in" class="section level2">
Expand Down
138 changes: 60 additions & 78 deletions modules/Data_Classes/Data_Classes.html

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions modules/Data_Classes/lab/Data_Classes_Lab.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@ editor_options:
Load all the packages we will use in this lab.

```{r}
library(readr)
library(tidyverse)
library(dplyr)
library(lubridate)
library(jhur)
```

Create some data to work with by running the following code chunk.
Expand Down
9 changes: 3 additions & 6 deletions modules/Data_Classes/lab/Data_Classes_Lab_Key.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,20 +170,17 @@ <h1>Part 1</h1>
<div id="section" class="section level3">
<h3>1.1</h3>
<p>Load all the packages we will use in this lab.</p>
<pre class="r"><code>library(readr)
library(tidyverse)</code></pre>
<pre class="r"><code>library(tidyverse)</code></pre>
<pre><code>## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
## ✔ dplyr 1.1.4 ✔ purrr 1.0.2
## ✔ 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>library(dplyr)
library(lubridate)
library(jhur)</code></pre>
<p>Create some data to work with by running the following code chunk.</p>
<pre class="r"><code>set.seed(1234)

Expand Down

0 comments on commit 8aa77b1

Please sign in to comment.