fix incorrect answer for poll and add library example

This commit is contained in:
Natalie Elphick 2024-01-23 11:09:39 -08:00
parent 3d03689086
commit 0701bb0b1d
3 changed files with 20 additions and 8 deletions

View file

@ -2753,7 +2753,7 @@ one style of names</li>
<li>cat_dog</li> <li>cat_dog</li>
<li>CatDOG</li> <li>CatDOG</li>
<li>cat.dog</li> <li>cat.dog</li>
<li>catD0g</li> <li>catD*g</li>
</ol> </ol>
</section> </section>
<section id="excercise-1" class="slide level2"> <section id="excercise-1" class="slide level2">
@ -2838,7 +2838,7 @@ types/structures</strong> (ex. nested lists)</li>
<section id="min-break" class="title-slide slide level1"> <section id="min-break" class="title-slide slide level1">
<h1>10 min break</h1> <h1>10 min break</h1>
<center> <center>
<div class="countdown" id="timer_e9648370" data-update-every="1" tabindex="0" style="right:0;bottom:0;margin:5%;padding:50px;font-size:5em;position: relative; width: min-content;"> <div class="countdown" id="timer_125f060d" data-update-every="1" tabindex="0" style="right:0;bottom:0;margin:5%;padding:50px;font-size:5em;position: relative; width: min-content;">
<div class="countdown-controls"><button class="countdown-bump-down"></button><button class="countdown-bump-up">+</button></div> <div class="countdown-controls"><button class="countdown-bump-down"></button><button class="countdown-bump-up">+</button></div>
<code class="countdown-time"><span class="countdown-digits minutes">10</span><span class="countdown-digits colon">:</span><span class="countdown-digits seconds">00</span></code> <code class="countdown-time"><span class="countdown-digits minutes">10</span><span class="countdown-digits colon">:</span><span class="countdown-digits seconds">00</span></code>
</div> </div>
@ -2987,9 +2987,15 @@ specified with the <strong>return</strong> keyword:</li>
<ul> <ul>
<li>Packages are collections of functions that are specialized to a <li>Packages are collections of functions that are specialized to a
specific task (plotting, data manipulation etc.)</li> specific task (plotting, data manipulation etc.)</li>
</ul>
<div class="sourceCode" id="cb16"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb16-1"><a href="#cb16-1" aria-hidden="true" tabindex="-1"></a><span class="fu">library</span>(ggplot2) <span class="co"># Makes all of the ggplot2 functions available</span></span></code></pre></div>
<ul>
<li>The tidyverse is a collection of commonly used data analysis <li>The tidyverse is a collection of commonly used data analysis
packages - Learning curve is less steep - Lots of useful packages for packages
data analysis</li> <ul>
<li>Learning curve is less steep</li>
<li>Lots of useful packages for data analysis</li>
</ul></li>
</ul> </ul>
</section> </section>
<section id="section-2" class="slide level2"> <section id="section-2" class="slide level2">

View file

@ -166,7 +166,7 @@ DogBreeds <- c("Labrador Retriever", "Akita", "Bulldog")
1. cat_dog 1. cat_dog
2. CatDOG 2. CatDOG
3. cat.dog 3. cat.dog
4. catD0g 4. catD*g
## Excercise 1 ## Excercise 1
@ -370,10 +370,16 @@ mystery_function <- function(x) {
## Packages ## Packages
- Packages are collections of functions that are specialized to a specific task (plotting, data manipulation etc.) - Packages are collections of functions that are specialized to a specific task (plotting, data manipulation etc.)
```{r}
library(ggplot2) # Makes all of the ggplot2 functions available
```
- The tidyverse is a collection of commonly used data analysis - The tidyverse is a collection of commonly used data analysis
packages packages
- Learning curve is less steep - Learning curve is less steep
- Lots of useful packages for data analysis - Lots of useful packages for data analysis
## ##

View file