Skip to content

Commit

Permalink
Deploying to gh-pages from @ 225e676 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
3mmaRand committed Oct 17, 2023
1 parent 60219db commit ee321a0
Show file tree
Hide file tree
Showing 62 changed files with 67 additions and 74 deletions.
2 changes: 1 addition & 1 deletion pgt52m/pgt52m.html
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@
<li class="sidebar-item sidebar-item-section">
<div class="sidebar-item-container">
<a class="sidebar-item-text sidebar-link text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-9" aria-expanded="true">
<span class="menu-text">Week 9: Inyroduction to the Assessment</span></a>
<span class="menu-text">Week 9: Introduction to the Assessment</span></a>
<a class="sidebar-item-toggle text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-9" aria-expanded="true" aria-label="Toggle section">
<i class="bi bi-chevron-right ms-2"></i>
</a>
Expand Down
2 changes: 1 addition & 1 deletion pgt52m/week-1/overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@
<li class="sidebar-item sidebar-item-section">
<div class="sidebar-item-container">
<a class="sidebar-item-text sidebar-link text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-9" aria-expanded="true">
<span class="menu-text">Week 9: Inyroduction to the Assessment</span></a>
<span class="menu-text">Week 9: Introduction to the Assessment</span></a>
<a class="sidebar-item-toggle text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-9" aria-expanded="true" aria-label="Toggle section">
<i class="bi bi-chevron-right ms-2"></i>
</a>
Expand Down
2 changes: 1 addition & 1 deletion pgt52m/week-1/study_after_workshop.html
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@
<li class="sidebar-item sidebar-item-section">
<div class="sidebar-item-container">
<a class="sidebar-item-text sidebar-link text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-9" aria-expanded="true">
<span class="menu-text">Week 9: Inyroduction to the Assessment</span></a>
<span class="menu-text">Week 9: Introduction to the Assessment</span></a>
<a class="sidebar-item-toggle text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-9" aria-expanded="true" aria-label="Toggle section">
<i class="bi bi-chevron-right ms-2"></i>
</a>
Expand Down
2 changes: 1 addition & 1 deletion pgt52m/week-1/study_before_workshop.html
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@
<li class="sidebar-item sidebar-item-section">
<div class="sidebar-item-container">
<a class="sidebar-item-text sidebar-link text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-9" aria-expanded="true">
<span class="menu-text">Week 9: Inyroduction to the Assessment</span></a>
<span class="menu-text">Week 9: Introduction to the Assessment</span></a>
<a class="sidebar-item-toggle text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-9" aria-expanded="true" aria-label="Toggle section">
<i class="bi bi-chevron-right ms-2"></i>
</a>
Expand Down
2 changes: 1 addition & 1 deletion pgt52m/week-1/workshop.html
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@
<li class="sidebar-item sidebar-item-section">
<div class="sidebar-item-container">
<a class="sidebar-item-text sidebar-link text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-9" aria-expanded="true">
<span class="menu-text">Week 9: Inyroduction to the Assessment</span></a>
<span class="menu-text">Week 9: Introduction to the Assessment</span></a>
<a class="sidebar-item-toggle text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-9" aria-expanded="true" aria-label="Toggle section">
<i class="bi bi-chevron-right ms-2"></i>
</a>
Expand Down
2 changes: 1 addition & 1 deletion pgt52m/week-2/overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@
<li class="sidebar-item sidebar-item-section">
<div class="sidebar-item-container">
<a class="sidebar-item-text sidebar-link text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-9" aria-expanded="true">
<span class="menu-text">Week 9: Inyroduction to the Assessment</span></a>
<span class="menu-text">Week 9: Introduction to the Assessment</span></a>
<a class="sidebar-item-toggle text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-9" aria-expanded="true" aria-label="Toggle section">
<i class="bi bi-chevron-right ms-2"></i>
</a>
Expand Down
2 changes: 1 addition & 1 deletion pgt52m/week-2/study_after_workshop.html
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@
<li class="sidebar-item sidebar-item-section">
<div class="sidebar-item-container">
<a class="sidebar-item-text sidebar-link text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-9" aria-expanded="true">
<span class="menu-text">Week 9: Inyroduction to the Assessment</span></a>
<span class="menu-text">Week 9: Introduction to the Assessment</span></a>
<a class="sidebar-item-toggle text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-9" aria-expanded="true" aria-label="Toggle section">
<i class="bi bi-chevron-right ms-2"></i>
</a>
Expand Down
2 changes: 1 addition & 1 deletion pgt52m/week-2/study_before_workshop.html
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@
<li class="sidebar-item sidebar-item-section">
<div class="sidebar-item-container">
<a class="sidebar-item-text sidebar-link text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-9" aria-expanded="true">
<span class="menu-text">Week 9: Inyroduction to the Assessment</span></a>
<span class="menu-text">Week 9: Introduction to the Assessment</span></a>
<a class="sidebar-item-toggle text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-9" aria-expanded="true" aria-label="Toggle section">
<i class="bi bi-chevron-right ms-2"></i>
</a>
Expand Down
8 changes: 4 additions & 4 deletions pgt52m/week-2/workshop.html
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@
<li class="sidebar-item sidebar-item-section">
<div class="sidebar-item-container">
<a class="sidebar-item-text sidebar-link text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-9" aria-expanded="true">
<span class="menu-text">Week 9: Inyroduction to the Assessment</span></a>
<span class="menu-text">Week 9: Introduction to the Assessment</span></a>
<a class="sidebar-item-toggle text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-9" aria-expanded="true" aria-label="Toggle section">
<i class="bi bi-chevron-right ms-2"></i>
</a>
Expand Down Expand Up @@ -601,8 +601,8 @@ <h1 class="title">Workshop</h1>
</section></section><section id="getting-started" class="level1"><h1>Getting started</h1>
<p><img src="images/do_on_your_computer.png" class="img-fluid"> Start RStudio from the Start menu.</p>
<p><img src="images/do_in_R.png" class="img-fluid"> Go the Files tab in the lower right pane and click on the <code>...</code> on the right. This will open a “Go to folder” window. Navigate to a place on your computer where you keep your work. Click Open.</p>
<p><img src="images/do_in_R.png" class="img-fluid"> Also on the Files tab click on <code>New Folder</code>. Type “data-analysis-in-r-1” in to the box. This will be the folder that we work in throughout the Data Analysis in R part BABS1.</p>
<p><img src="images/do_in_R.png" class="img-fluid"> Make an RStudio project for this workshop by clicking on the drop-down menu on top right where it says <code>Project: (None)</code> and choosing New Project, then New Directory, then New Project. Name the RStudio Project ‘week-7’.</p>
<p><img src="images/do_in_R.png" class="img-fluid"> Also on the Files tab click on <code>New Folder</code>. Type “data-analysis-in-r-1” in to the box. This will be the folder that we work in throughout.</p>
<p><img src="images/do_in_R.png" class="img-fluid"> Make an RStudio project for this workshop by clicking on the drop-down menu on top right where it says <code>Project: (None)</code> and choosing New Project, then New Directory, then New Project. Name the RStudio Project ‘week-2’.</p>
<p><img src="images/do_in_R.png" class="img-fluid"> Make a new script then save it with a name like analysis.R to carry out the rest of the work.</p>
<p><img src="images/do_in_R.png" class="img-fluid"> Add a comment to the script: <code># Introduction to RStudio and your first graph</code></p>
</section><section id="exercises" class="level1"><h1>Exercises</h1>
Expand Down Expand Up @@ -941,7 +941,7 @@ <h1 class="title">Workshop</h1>
<p><a href="../../pgt52m/week-2/study_after_workshop.html">Consolidate</a></p>
</section><section id="the-code-file" class="level1"><h1>The Code file</h1>
<p>These contain all the code needed in the workshop even where it is not visible on the webpage.</p>
<p>The <a href="../../pgt52m/week-2/workshop.html">workshop.qmd</a> file is the file I use to compile the practical. Qmd stands for Quarto markdown. It allows code and ordinary text to be interweaved to produce well-formatted reports including webpages. Right-click on the link and choose Save-As to download. You will be able to open the Rmd file in RStudio. Alternatively, <a href="https://github.com/3mmaRand/R4BABS/blob/main/r4babs1/week-7/workshop.qmd">View in Browser</a>.Coding and thinking answers are marked with <code>#---CODING ANSWER---</code> and <code>#---THINKING ANSWER---</code></p>
<p>The <a href="../../pgt52m/week-2/workshop.html">workshop.qmd</a> file is the file I use to compile the practical. Qmd stands for Quarto markdown. It allows code and ordinary text to be interweaved to produce well-formatted reports including webpages. Right-click on the link and choose Save-As to download. You will be able to open the Rmd file in RStudio. Alternatively, <a href="https://github.com/3mmaRand/R4BABS/blob/main/pgt52m/week-2/workshop.qmd">View in Browser</a>.Coding and thinking answers are marked with <code>#---CODING ANSWER---</code> and <code>#---THINKING ANSWER---</code></p>
<p>Pages made with R <span class="citation" data-cites="R-core">(<a href="#ref-R-core" role="doc-biblioref">R Core Team 2023</a>)</span>, Quarto <span class="citation" data-cites="allaire2022">(<a href="#ref-allaire2022" role="doc-biblioref">Allaire et al. 2022</a>)</span>, <code>knitr</code> <span class="citation" data-cites="knitr">(<a href="#ref-knitr" role="doc-biblioref">Xie 2022</a>)</span>, <code>kableExtra</code> <span class="citation" data-cites="kableExtra">(<a href="#ref-kableExtra" role="doc-biblioref">Zhu 2021</a>)</span></p>
</section><section id="references" class="level1">

Expand Down
2 changes: 1 addition & 1 deletion pgt52m/week-3/overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@
<li class="sidebar-item sidebar-item-section">
<div class="sidebar-item-container">
<a class="sidebar-item-text sidebar-link text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-9" aria-expanded="true">
<span class="menu-text">Week 9: Inyroduction to the Assessment</span></a>
<span class="menu-text">Week 9: Introduction to the Assessment</span></a>
<a class="sidebar-item-toggle text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-9" aria-expanded="true" aria-label="Toggle section">
<i class="bi bi-chevron-right ms-2"></i>
</a>
Expand Down
2 changes: 1 addition & 1 deletion pgt52m/week-3/study_after_workshop.html
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@
<li class="sidebar-item sidebar-item-section">
<div class="sidebar-item-container">
<a class="sidebar-item-text sidebar-link text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-9" aria-expanded="true">
<span class="menu-text">Week 9: Inyroduction to the Assessment</span></a>
<span class="menu-text">Week 9: Introduction to the Assessment</span></a>
<a class="sidebar-item-toggle text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-9" aria-expanded="true" aria-label="Toggle section">
<i class="bi bi-chevron-right ms-2"></i>
</a>
Expand Down
2 changes: 1 addition & 1 deletion pgt52m/week-3/study_before_workshop.html
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@
<li class="sidebar-item sidebar-item-section">
<div class="sidebar-item-container">
<a class="sidebar-item-text sidebar-link text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-9" aria-expanded="true">
<span class="menu-text">Week 9: Inyroduction to the Assessment</span></a>
<span class="menu-text">Week 9: Introduction to the Assessment</span></a>
<a class="sidebar-item-toggle text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-9" aria-expanded="true" aria-label="Toggle section">
<i class="bi bi-chevron-right ms-2"></i>
</a>
Expand Down
10 changes: 5 additions & 5 deletions pgt52m/week-3/workshop.html
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@
<li class="sidebar-item sidebar-item-section">
<div class="sidebar-item-container">
<a class="sidebar-item-text sidebar-link text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-9" aria-expanded="true">
<span class="menu-text">Week 9: Inyroduction to the Assessment</span></a>
<span class="menu-text">Week 9: Introduction to the Assessment</span></a>
<a class="sidebar-item-toggle text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-9" aria-expanded="true" aria-label="Toggle section">
<i class="bi bi-chevron-right ms-2"></i>
</a>
Expand Down Expand Up @@ -593,12 +593,12 @@ <h1 class="title">Workshop</h1>
</div>
</section></section><section id="getting-started" class="level1"><h1>Getting started</h1>
<p><img src="images/do_on_your_computer.png" class="img-fluid"> Start RStudio from the Start menu.</p>
<p><img src="images/do_in_R.png" class="img-fluid"> Make an RStudio project for this workshop by clicking on the drop-down menu on top right where it says <code>Project: (None)</code> and choosing New Project, then New Directory, then New Project. Navigate to the <code>data-analysis-in-r-1</code> folder and name the RStudio Project ‘week-8’.</p>
<p><img src="images/do_in_R.png" class="img-fluid"> Make an RStudio project for this workshop by clicking on the drop-down menu on top right where it says <code>Project: (None)</code> and choosing New Project, then New Directory, then New Project. Navigate to the <code>data-analysis-in-r-1</code> folder and name the RStudio Project ‘week-3’.</p>
<p><img src="images/do_in_R.png" class="img-fluid"> Make a new script then save it with a name like <code>analysis.R</code> to carry out the rest of the work.</p>
<p><img src="images/do_in_R.png" class="img-fluid"> Add a comment to the script: <code># Types of variable, the normal distribution and summarising data</code></p>
</section><section id="exercises" class="level1"><h1>Exercises</h1>
<section id="importing-data-from-files" class="level2"><h2 class="anchored" data-anchor-id="importing-data-from-files">Importing data from files</h2>
<p>Last week we created data <a href="../week-7/workshop.html#creating-the-data">by typing the values in to R</a>. This is not practical when you have added a lot of data to a spreadsheet, or you are using data file that has been supplied to you by a person or a machine. Far more commonly, we import data from a file into R. This requires you know two pieces of information.</p>
<p>Last week we created data <a href="../week-2/workshop.html#creating-the-data">by typing the values in to R</a>. This is not practical when you have added a lot of data to a spreadsheet, or you are using data file that has been supplied to you by a person or a machine. Far more commonly, we import data from a file into R. This requires you know two pieces of information.</p>
<ol type="1">
<li>
<p>What format the data are in</p>
Expand Down Expand Up @@ -718,7 +718,7 @@ <h1 class="title">Workshop</h1>
<li><p>plot the summary table using <code><a href="https://ggplot2.tidyverse.org/reference/geom_bar.html">geom_col()</a></code></p></li>
<li><p>plot the raw data using <code><a href="https://ggplot2.tidyverse.org/reference/geom_bar.html">geom_bar()</a></code></p></li>
</ol>
<p>We did the first of these <a href="../week-7/workshop.html#plotting-the-data-with-ggplot">last week</a>. The <code><a href="https://ggplot2.tidyverse.org/reference/geom_bar.html">geom_col()</a></code> function uses the numbers in a second column to determine how high the bars are. However, the <code><a href="https://ggplot2.tidyverse.org/reference/geom_bar.html">geom_bar()</a></code> function will do the tabulating for you.</p>
<p>We did the first of these <a href="../week-2/workshop.html#plotting-the-data-with-ggplot">last week</a>. The <code><a href="https://ggplot2.tidyverse.org/reference/geom_bar.html">geom_col()</a></code> function uses the numbers in a second column to determine how high the bars are. However, the <code><a href="https://ggplot2.tidyverse.org/reference/geom_bar.html">geom_bar()</a></code> function will do the tabulating for you.</p>
<p><img src="images/do_in_R.png" class="img-fluid"> Plot the coat data using <code>geom_bar</code>:</p>
<div class="cell">
<div class="sourceCode" id="cb9"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="fu"><a href="https://ggplot2.tidyverse.org/reference/ggplot.html">ggplot</a></span><span class="op">(</span><span class="va">cats</span>, <span class="fu"><a href="https://ggplot2.tidyverse.org/reference/aes.html">aes</a></span><span class="op">(</span>x <span class="op">=</span> <span class="va">coat</span><span class="op">)</span><span class="op">)</span> <span class="op">+</span></span>
Expand Down Expand Up @@ -842,7 +842,7 @@ <h1 class="title">Workshop</h1>
<p><a href="../../pgt52m/week-3/study_after_workshop.html">Consolidate</a></p>
</section><section id="the-code-file" class="level1"><h1>The Code file</h1>
<p>These contain all the code needed in the workshop even where it is not visible on the webpage.</p>
<p>The <a href="../../pgt52m/week-3/workshop.html">workshop.qmd</a> file is the file I use to compile the practical. Qmd stands for Quarto markdown. It allows code and ordinary text to be interweaved to produce well-formatted reports including webpages. Right-click on the link and choose Save-As to download. You will be able to open the Rmd file in RStudio. Alternatively, <a href="https://github.com/3mmaRand/R4BABS/blob/main/r4babs1/week-8/workshop.qmd">View in Browser</a>. Coding and thinking answers are marked with <code>#---CODING ANSWER---</code> and <code>#---THINKING ANSWER---</code></p>
<p>The <a href="../../pgt52m/week-3/workshop.html">workshop.qmd</a> file is the file I use to compile the practical. Qmd stands for Quarto markdown. It allows code and ordinary text to be interweaved to produce well-formatted reports including webpages. Right-click on the link and choose Save-As to download. You will be able to open the Rmd file in RStudio. Alternatively, <a href="https://github.com/3mmaRand/R4BABS/blob/main/pgt52m/week-3/workshop.qmd">View in Browser</a>. Coding and thinking answers are marked with <code>#---CODING ANSWER---</code> and <code>#---THINKING ANSWER---</code></p>
<p>Pages made with R <span class="citation" data-cites="R-core">(<a href="#ref-R-core" role="doc-biblioref">R Core Team 2023</a>)</span>, Quarto <span class="citation" data-cites="allaire2022">(<a href="#ref-allaire2022" role="doc-biblioref">Allaire et al. 2022</a>)</span>, <code>knitr</code> <span class="citation" data-cites="knitr">(<a href="#ref-knitr" role="doc-biblioref">Xie 2022</a>)</span>, <code>kableExtra</code> <span class="citation" data-cites="kableExtra">(<a href="#ref-kableExtra" role="doc-biblioref">Zhu 2021</a>)</span></p>
</section><section id="references" class="level1">

Expand Down
2 changes: 1 addition & 1 deletion pgt52m/week-4/overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@
<li class="sidebar-item sidebar-item-section">
<div class="sidebar-item-container">
<a class="sidebar-item-text sidebar-link text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-9" aria-expanded="true">
<span class="menu-text">Week 9: Inyroduction to the Assessment</span></a>
<span class="menu-text">Week 9: Introduction to the Assessment</span></a>
<a class="sidebar-item-toggle text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-9" aria-expanded="true" aria-label="Toggle section">
<i class="bi bi-chevron-right ms-2"></i>
</a>
Expand Down
2 changes: 1 addition & 1 deletion pgt52m/week-4/study_after_workshop.html
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@
<li class="sidebar-item sidebar-item-section">
<div class="sidebar-item-container">
<a class="sidebar-item-text sidebar-link text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-9" aria-expanded="true">
<span class="menu-text">Week 9: Inyroduction to the Assessment</span></a>
<span class="menu-text">Week 9: Introduction to the Assessment</span></a>
<a class="sidebar-item-toggle text-start" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar-section-9" aria-expanded="true" aria-label="Toggle section">
<i class="bi bi-chevron-right ms-2"></i>
</a>
Expand Down
Loading

0 comments on commit ee321a0

Please sign in to comment.