Skip to content

Commit

Permalink
Built site for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielodom committed Dec 29, 2023
1 parent 84d9091 commit 59ed011
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 53 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2a0d7b5f
482436a1
2 changes: 1 addition & 1 deletion lessons/lesson04_ggplot.html
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@ <h1>Organizing ggplot Code</h1>
<section id="further-reading-and-online-examples" class="level1">
<h1>Further Reading and Online Examples:</h1>
<ul>
<li><a href="https://www.rstudio.com/wp-content/uploads/2015/03/ggplot2-cheatsheet.pdf" class="uri">https://www.rstudio.com/wp-content/uploads/2015/03/ggplot2-cheatsheet.pdf</a></li>
<li><a href="https://www.maths.usyd.edu.au/u/UG/SM/STAT3022/r/current/Misc/data-visualization-2.1.pdf" class="uri">https://www.maths.usyd.edu.au/u/UG/SM/STAT3022/r/current/Misc/data-visualization-2.1.pdf</a></li>
<li><a href="http://r-statistics.co/Top50-Ggplot2-Visualizations-MasterList-R-Code.html" class="uri">http://r-statistics.co/Top50-Ggplot2-Visualizations-MasterList-R-Code.html</a></li>
<li>The #TidyTuesday hashtag on Twitter: <a href="https://twitter.com/hashtag/tidytuesday?lang=en" class="uri">https://twitter.com/hashtag/tidytuesday?lang=en</a></li>
</ul>
Expand Down
12 changes: 1 addition & 11 deletions lessons/lesson06_atomic_vectors.html
Original file line number Diff line number Diff line change
Expand Up @@ -1115,19 +1115,9 @@ <h2 class="anchored" data-anchor-id="missing-data-in-atomic-vectors">Missing Dat
<pre><code>[1] TRUE</code></pre>
</div>
</div>
<section id="review-atomic-vector-types" class="level3">
<h3 class="anchored" data-anchor-id="review-atomic-vector-types">Review: Atomic Vector Types</h3>
<p>Because there are multiple types of atomic data, there are <em>technically</em> multiple types of <code>NA</code>. Recall the four atomic data types of use in the health sciences:</p>
<ol type="1">
<li><code>logical</code>: This is the most basic type of information that can be stored in <code>R</code>. A vector with elements of class <code>logical</code> is a vector of only <code>TRUE</code> or <code>FALSE</code> values.</li>
<li><code>integer</code>: This is the second-most basic type of information. An <code>integer</code> vector is a vector of positive or negative counting numbers (and 0).</li>
<li><code>numeric</code>: This is the class for the Real numbers in <code>R</code>. Any <code>integer</code> is necessarily also <code>numeric</code>, but the reverse is not true.</li>
<li><code>character</code>: This is the most complex class of atomic information. This class ensures that the information you type into <code>R</code> stays marked with the keystrokes you typed to enter it. Therefore, <code>"10"</code> is not recorded as the integer 10, or the real number 10.000000…, but rather the combined keystrokes of the “1” and “0” keys on your keyboard (to be very technical, “1” and “0” are stored with the ASCII code 049 and 048, respectively, or perhaps as a UTF-8 encoded value).</li>
</ol>
</section>
<section id="type-specific-missing-values" class="level3">
<h3 class="anchored" data-anchor-id="type-specific-missing-values">Type-Specific Missing Values</h3>
<p>Because we have four major atomic types, we have four ways that data from atomic vectors could be missing. They all start with <code>NA</code>.</p>
<p>Because there are multiple types of atomic data, there are <em>technically</em> multiple types of <code>NA</code>. They all start with <code>NA</code>.</p>
<ol type="1">
<li><code>NA</code>: This is the missing value marker for a <strong>logical</strong> vector.</li>
<li><code>NA_integer_</code>: This is the missing value marker for an <strong>integer</strong> vector.</li>
Expand Down
36 changes: 18 additions & 18 deletions lessons/lesson09_dplyr.html
Original file line number Diff line number Diff line change
Expand Up @@ -1188,20 +1188,20 @@ <h1>Grouping and Group Summaries with <code>group_by()</code> and <code>summaris
<span id="cb63-4"><a href="#cb63-4" aria-hidden="true" tabindex="-1"></a> <span class="fu">mutate</span>(<span class="at">resid_delay =</span> delay <span class="sc">-</span> <span class="fu">mean</span>(delay)) <span class="sc">%&gt;%</span> </span>
<span id="cb63-5"><a href="#cb63-5" aria-hidden="true" tabindex="-1"></a> <span class="fu">arrange</span>(resid_delay)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stdout">
<pre><code># A tibble: 105 × 3
<pre><code># A tibble: 104 × 3
dest delay resid_delay
&lt;chr&gt; &lt;dbl&gt; &lt;dbl&gt;
1 LEX -22 -30.8
2 PSP -12.7 -21.6
3 SNA -7.87 -16.7
4 STT -3.84 -12.7
5 ANC -2.5 -11.3
6 HNL -1.37 -10.2
7 SEA -1.10 -9.95
8 MVY -0.286 -9.14
9 LGB -0.0620 -8.91
10 SLC 0.176 -8.67
# ℹ 95 more rows</code></pre>
1 LEX -22 -30.7
2 PSP -12.7 -21.5
3 SNA -7.87 -16.6
4 STT -3.84 -12.6
5 ANC -2.5 -11.2
6 HNL -1.37 -10.1
7 SEA -1.10 -9.83
8 MVY -0.286 -9.02
9 LGB -0.0620 -8.79
10 SLC 0.176 -8.56
# ℹ 94 more rows</code></pre>
</div>
</div>
<p>We can always ungroup our data table with the <code>ungroup()</code> function.</p>
Expand Down Expand Up @@ -1359,7 +1359,7 @@ <h3 class="anchored" data-anchor-id="examples-2">Examples</h3>
<span id="cb77-3"><a href="#cb77-3" aria-hidden="true" tabindex="-1"></a> <span class="fu">summarise</span>(<span class="at">distance_sd =</span> <span class="fu">sd</span>(distance)) <span class="sc">%&gt;%</span> </span>
<span id="cb77-4"><a href="#cb77-4" aria-hidden="true" tabindex="-1"></a> <span class="fu">arrange</span>(<span class="fu">desc</span>(distance_sd))</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stdout">
<pre><code># A tibble: 105 × 2
<pre><code># A tibble: 104 × 2
dest distance_sd
&lt;chr&gt; &lt;dbl&gt;
1 EGE 10.5
Expand All @@ -1372,7 +1372,7 @@ <h3 class="anchored" data-anchor-id="examples-2">Examples</h3>
8 PHX 9.86
9 LAX 9.66
10 IND 9.46
# ℹ 95 more rows</code></pre>
# ℹ 94 more rows</code></pre>
</div>
<div class="sourceCode cell-code" id="cb79"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb79-1"><a href="#cb79-1" aria-hidden="true" tabindex="-1"></a>not_cancelled <span class="sc">%&gt;%</span> </span>
<span id="cb79-2"><a href="#cb79-2" aria-hidden="true" tabindex="-1"></a> <span class="fu">group_by</span>(year, month, day) <span class="sc">%&gt;%</span> </span>
Expand Down Expand Up @@ -1412,7 +1412,7 @@ <h3 class="anchored" data-anchor-id="examples-2">Examples</h3>
<span id="cb82-3"><a href="#cb82-3" aria-hidden="true" tabindex="-1"></a> <span class="fu">group_by</span>(dest) <span class="sc">%&gt;%</span></span>
<span id="cb82-4"><a href="#cb82-4" aria-hidden="true" tabindex="-1"></a> <span class="fu">summarise</span>(<span class="at">n =</span> <span class="fu">n</span>())</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stdout">
<pre><code># A tibble: 105 × 2
<pre><code># A tibble: 104 × 2
dest n
&lt;chr&gt; &lt;int&gt;
1 ABQ 254
Expand All @@ -1425,13 +1425,13 @@ <h3 class="anchored" data-anchor-id="examples-2">Examples</h3>
8 BDL 412
9 BGR 358
10 BHM 269
# ℹ 95 more rows</code></pre>
# ℹ 94 more rows</code></pre>
</div>
<div class="sourceCode cell-code" id="cb84"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb84-1"><a href="#cb84-1" aria-hidden="true" tabindex="-1"></a><span class="co"># use</span></span>
<span id="cb84-2"><a href="#cb84-2" aria-hidden="true" tabindex="-1"></a>not_cancelled <span class="sc">%&gt;%</span> </span>
<span id="cb84-3"><a href="#cb84-3" aria-hidden="true" tabindex="-1"></a> <span class="fu">count</span>(dest)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stdout">
<pre><code># A tibble: 105 × 2
<pre><code># A tibble: 104 × 2
dest n
&lt;chr&gt; &lt;int&gt;
1 ABQ 254
Expand All @@ -1444,7 +1444,7 @@ <h3 class="anchored" data-anchor-id="examples-2">Examples</h3>
8 BDL 412
9 BGR 358
10 BHM 269
# ℹ 95 more rows</code></pre>
# ℹ 94 more rows</code></pre>
</div>
</div>
<ol start="4" type="1">
Expand Down
Binary file modified lessons/lesson09_dplyr_files/figure-html/unnamed-chunk-32-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lessons/lesson10_stringr.html
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ <h2 class="anchored" data-anchor-id="example-data">Example Data</h2>
<ol type="1">
<li>Inspect the vector <code>fruit</code>.</li>
<li>Inspect first 20 elements of the vector <code>sentences</code>.</li>
<li>Create a smaller version of the <code>outcomesCTN0094</code> tibble with the following columns: <code>who</code>, <code>usePatternUDS</code>, and <code>ctn0094_relapse_time</code>. Save it as an object in your Global environment called <code>outcome_df</code>.</li>
<li>Create a smaller version of the <code>outcomesCTN0094</code> tibble with the following columns: <code>who</code>, <code>usePatternUDS</code>, and <code>RsT_ctnNinetyFour_2023</code>. Save it as an object in your Global environment called <code>outcome_df</code>.</li>
</ol>
</div>
</div>
Expand Down
Loading

0 comments on commit 59ed011

Please sign in to comment.