Skip to content

Commit

Permalink
Create automated build
Browse files Browse the repository at this point in the history
  • Loading branch information
RRC_GHA committed Oct 4, 2024
1 parent ccd3c57 commit 9966f2a
Show file tree
Hide file tree
Showing 9 changed files with 233 additions and 211 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 14 additions & 14 deletions public/2024-10-coreR/search.json

Large diffs are not rendered by default.

27 changes: 14 additions & 13 deletions public/2024-10-coreR/session_10.html
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ <h2 class="unnumbered anchored" data-anchor-id="exercise-1-practice-joins">Exerc
<li><p>Create a new Quarto Document.</p>
<ol type="a">
<li>Title it “R Practice: Tidy Data and Joins”.</li>
<li>Save the file and name it “r-practice-tidy-data-joins”.</li>
<li>Save the file and name it “r-practice-tidy-data-joins” in your <code>scripts</code> folder.</li>
</ol></li>
</ol>
<p><strong>Note:</strong> Double check that you’re in the right project. Where in RStudio can you check where you are?</p>
Expand All @@ -406,9 +406,10 @@ <h2 class="unnumbered anchored" data-anchor-id="exercise-1-practice-joins">Exerc
<div class="cell">
<div class="sourceCode cell-code" id="cb1"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="fu">library</span>(readr)</span>
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a><span class="fu">library</span>(dplyr)</span>
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a><span class="fu">library</span>(lubridate) <span class="co"># for bonus question</span></span>
<span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb1-5"><a href="#cb1-5" aria-hidden="true" tabindex="-1"></a><span class="co"># Quick question: Do you get a message after loading the libraries? What is it telling you? Talk to your neighbor about it or write a note in your qmd.</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a><span class="fu">library</span>(here)</span>
<span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a><span class="fu">library</span>(lubridate) <span class="co"># for bonus question</span></span>
<span id="cb1-5"><a href="#cb1-5" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb1-6"><a href="#cb1-6" aria-hidden="true" tabindex="-1"></a><span class="co"># Quick question: Do you get a message after loading the libraries? What is it telling you? Talk to your neighbor about it or write a note in your qmd.</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
<ol start="3" type="1">
<li>Obtain data from the EDI Data Portal <a href="https://portal.edirepository.org/nis/mapbrowse?scope=knb-lter-cap&amp;identifier=256&amp;revision=10">Ecological and social interactions in urban parks: bird surveys in local parks in the central Arizona-Phoenix metropolitan area</a>. Download the following files:</li>
Expand Down Expand Up @@ -455,10 +456,10 @@ <h2 data-number="10.1" class="anchored" data-anchor-id="read-in-the-data"><span
<span id="cb2-5"><a href="#cb2-5" aria-hidden="true" tabindex="-1"></a>taxalist <span class="ot">&lt;-</span> <span class="fu">read_csv</span>(<span class="st">"https://portal.edirepository.org/nis/dataviewer?packageid=knb-lter-cap.256.10&amp;entityid=58f863b7e3066e68536a9cacdc7bd58e"</span>)</span>
<span id="cb2-6"><a href="#cb2-6" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb2-7"><a href="#cb2-7" aria-hidden="true" tabindex="-1"></a><span class="co"># read in data from the data directory after manually downloading data </span></span>
<span id="cb2-8"><a href="#cb2-8" aria-hidden="true" tabindex="-1"></a>bird_observations <span class="ot">&lt;-</span> <span class="fu">read_csv</span>(<span class="st">"data/52_pp52_birds_1.csv"</span>)</span>
<span id="cb2-9"><a href="#cb2-9" aria-hidden="true" tabindex="-1"></a>surveys <span class="ot">&lt;-</span> <span class="fu">read_csv</span>(<span class="st">"data/52_pp52_surveys_1.csv"</span>)</span>
<span id="cb2-10"><a href="#cb2-10" aria-hidden="true" tabindex="-1"></a>sites <span class="ot">&lt;-</span> <span class="fu">read_csv</span>(<span class="st">"data/52_pp52_sites_1.csv"</span>)</span>
<span id="cb2-11"><a href="#cb2-11" aria-hidden="true" tabindex="-1"></a>taxalist <span class="ot">&lt;-</span> <span class="fu">read_csv</span>(<span class="st">"data/52_pp52_taxalist_1.csv"</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<span id="cb2-8"><a href="#cb2-8" aria-hidden="true" tabindex="-1"></a>bird_observations <span class="ot">&lt;-</span> <span class="fu">read_csv</span>(here<span class="sc">::</span><span class="fu">here</span>(<span class="st">"data/52_pp52_birds_1.csv"</span>))</span>
<span id="cb2-9"><a href="#cb2-9" aria-hidden="true" tabindex="-1"></a>surveys <span class="ot">&lt;-</span> <span class="fu">read_csv</span>(here<span class="sc">::</span><span class="fu">here</span>(<span class="st">"data/52_pp52_surveys_1.csv"</span>))</span>
<span id="cb2-10"><a href="#cb2-10" aria-hidden="true" tabindex="-1"></a>sites <span class="ot">&lt;-</span> <span class="fu">read_csv</span>(here<span class="sc">::</span><span class="fu">here</span>(<span class="st">"data/52_pp52_sites_1.csv"</span>))</span>
<span id="cb2-11"><a href="#cb2-11" aria-hidden="true" tabindex="-1"></a>taxalist <span class="ot">&lt;-</span> <span class="fu">read_csv</span>(here<span class="sc">::</span><span class="fu">here</span>(<span class="st">"data/52_pp52_taxalist_1.csv"</span>))</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</details>
</div>
</section>
Expand All @@ -474,7 +475,7 @@ <h2 data-number="10.2" class="anchored" data-anchor-id="get-familiar-with-the-da
</div>
</div>
<div class="callout-body-container callout-body">
<p>What functions can you use to explore the data you just read in? Think about which functions we’ve been using to explore the structure of the data frame, information about columns, unique observations, etc. Tip: run `View(name_of_your_data_frame) in the console to see data in a spreadsheet-style viewer.</p>
<p>What functions can you use to explore the data you just read in? Think about which functions we’ve been using to explore the structure of the data frame, information about columns, unique observations, etc. Tip: run <code>View(name_of_your_data_frame)</code> <strong>in the console</strong> to see data in a spreadsheet-style viewer.</p>
</div>
</div>
<div class="cell">
Expand Down Expand Up @@ -562,7 +563,7 @@ <h2 data-number="10.4" class="anchored" data-anchor-id="use-left_join-to-merge-b
</div>
<div class="callout-body-container callout-body">
<p>First, answer: what do you expect the outcome data frame when doing <code>left_join()</code> between <code>birds_subset</code> and <code>sites</code> to look like? What observations do you expect in the outcome data frame.</p>
<p>Write this in your Quarto Document or tell a neighbor.</p>
<p>You can use paper to draw if that helps you or talk to your neighbor. Write down the steps and expected outcome in your Quarto Document.</p>
</div>
</div>
<details>
Expand Down Expand Up @@ -616,7 +617,7 @@ <h2 data-number="10.5" class="anchored" data-anchor-id="use-full_join-to-merge-b
<summary>
Answer
</summary>
<p>I expect to see all columns and all observations from <code>birds_subset</code> and all columns and all observations from <code>sites</code> to be merged into one data frame because in a full join everything is kept.</p>
<p>I expect to see all columns and all observations from <code>birds_subset</code> and all columns and all observations from <code>sites</code> to be merged into one data frame because in a full join everything is kept. <code>NA</code> values could be introduced.</p>
</details>
<div class="callout callout-style-default callout-note callout-titled">
<div class="callout-header d-flex align-content-center">
Expand Down Expand Up @@ -843,11 +844,11 @@ <h2 data-number="10.8" class="anchored" data-anchor-id="explore-observer-data-an
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
Save your work and use Git
Save your work and dont’s forget the Git and GitHub Workflow
</div>
</div>
<div class="callout-body-container callout-body">
<p>Don’t forget the Git workflow! After you’ve completed the exercises or reached a significant stopping point, use the workflow: <code>Stage (add) -&gt; Commit -&gt; Pull -&gt; Push</code></p>
<p>After you’ve completed the exercises or reached a significant stopping point, use the workflow: <code>Stage (add) -&gt; Commit -&gt; Pull -&gt; Push</code></p>
</div>
</div>
</section>
Expand Down
Loading

0 comments on commit 9966f2a

Please sign in to comment.