Skip to content

Commit

Permalink
Merge pull request #16 from nhs-r-community/corrections
Browse files Browse the repository at this point in the history
Corrections
  • Loading branch information
Lextuga007 authored Oct 3, 2023
2 parents f07f7dc + 2ff2865 commit 94e1285
Show file tree
Hide file tree
Showing 40 changed files with 1,011 additions and 845 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

This is a second edition of the [Introduction to R and R Studio material](https://github.com/nhs-r-community/intro_r/tree/main) which is
extended for data manipulation and broken into smaller chapters to offer greater
flexibility for trainers. The link to the published materials is in a suggested
flexibility for trainers.

The link to the published materials is in a suggested
order.

# Part 1
Expand Down Expand Up @@ -46,7 +48,7 @@ order.
[Ongoing learning resources](https://nhs-r-community.github.io/intro_r/09-workshop-learning.html#1)

# Part 3
[Introducing chart visualisations using {ggplot2](https://nhs-r-community.github.io/intro_r/04-workshop_ggplot2.html#1)
[Introducing chart visualisations using {ggplot2}](https://nhs-r-community.github.io/intro_r/04-workshop_ggplot2.html#1)

## Break
[Break](https://nhs-r-community.github.io/intro-r-rstudio/session-break-slide.html#/title-slide)
Expand Down
14 changes: 12 additions & 2 deletions _quarto.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
project:
title: "intro-r-nhse"
# output-dir: "/slides"


author: "Zoë Turner"
format:
revealjs:
theme: [default, nhsr-quarto.scss]
logo: https://raw.githubusercontent.com/nhs-r-community/assets/main/logo/nhsr-logo.svg
code-link: true
css: nhsr-quarto.scss
self-contained: true
preview-links: true
title-slide-attributes:
data-background-color: "#43464B"
embed-resources: true
81 changes: 51 additions & 30 deletions session-break-slide.html

Large diffs are not rendered by default.

11 changes: 0 additions & 11 deletions session-break-slide.qmd
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
---
title: "Introduction to R and Rstudio"
title-slide-attributes:
data-background-color: "#43464B"
subtitle: "Session - Break"
author: "Zoë Turner"
format:
revealjs:
theme: [default, nhsr-quarto.scss]
logo: https://raw.githubusercontent.com/nhs-r-community/assets/main/logo/nhsr-logo.svg
code-link: true
css: nhsr-quarto.scss
self-contained: true
preview-links: true
execute:
echo: false
eval: true
Expand Down
80 changes: 51 additions & 29 deletions session-csv-url.html

Large diffs are not rendered by default.

10 changes: 0 additions & 10 deletions session-csv-url.qmd
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
---
title: "Introduction to R and Rstudio"
title-slide-attributes:
data-background-color: "#43464B"
subtitle: "Session - import csv from the web"
author: "Zoë Turner"
format:
revealjs:
theme: [default, nhsr-quarto.scss]
logo: https://raw.githubusercontent.com/nhs-r-community/assets/main/logo/nhsr-logo.svg
code-link: true
css: nhsr-quarto.scss
self-contained: true
preview-links: true
execute:
echo: true
eval: false
Expand Down
80 changes: 51 additions & 29 deletions session-csv.html

Large diffs are not rendered by default.

11 changes: 0 additions & 11 deletions session-csv.qmd
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
---
title: "Introduction to R and Rstudio"
title-slide-attributes:
data-background-color: "#43464B"
subtitle: "Session - import csv"
author: "Zoë Turner"
format:
revealjs:
theme: [default, nhsr-quarto.scss]
logo: https://raw.githubusercontent.com/nhs-r-community/assets/main/logo/nhsr-logo.svg
code-link: true
css: nhsr-quarto.scss
self-contained: true
preview-links: true
execute:
echo: true
eval: false
Expand Down
82 changes: 52 additions & 30 deletions session-datapasta.html

Large diffs are not rendered by default.

10 changes: 0 additions & 10 deletions session-datapasta.qmd
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
---
title: "Introduction to R and Rstudio"
title-slide-attributes:
data-background-color: "#43464B"
subtitle: "Session - import data {datapasta}"
author: "Zoë Turner"
format:
revealjs:
theme: [default, nhsr-quarto.scss]
logo: https://raw.githubusercontent.com/nhs-r-community/assets/main/logo/nhsr-logo.svg
code-link: true
css: nhsr-quarto.scss
self-contained: true
preview-links: true
execute:
eval: true
echo: true
Expand Down
121 changes: 70 additions & 51 deletions session-dplyr-showcase.html

Large diffs are not rendered by default.

10 changes: 0 additions & 10 deletions session-dplyr-showcase.qmd
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
---
title: "Introduction to R and Rstudio"
title-slide-attributes:
data-background-color: "#43464B"
subtitle: "Session - Showing more {dplyr} functions"
author: "Zoë Turner"
format:
revealjs:
theme: [default, nhsr-quarto.scss]
logo: https://raw.githubusercontent.com/nhs-r-community/assets/main/logo/nhsr-logo.svg
code-link: true
css: nhsr-quarto.scss
self-contained: true
preview-links: true
execute:
echo: true
eval: true
Expand Down
93 changes: 56 additions & 37 deletions session-dplyr-wrangling.html

Large diffs are not rendered by default.

13 changes: 1 addition & 12 deletions session-dplyr-wrangling.qmd
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
---
title: "Introduction to R and Rstudio"
title-slide-attributes:
data-background-color: "#43464B"
subtitle: "Session - Cleaning data with {dplyr}"
author: "Zoë Turner"
format:
revealjs:
theme: [default, nhsr-quarto.scss]
logo: https://raw.githubusercontent.com/nhs-r-community/assets/main/logo/nhsr-logo.svg
code-link: true
css: nhsr-quarto.scss
self-contained: true
preview-links: true
execute:
echo: true
eval: false
Expand Down Expand Up @@ -416,7 +405,7 @@ countdown::countdown(minutes = 10,
beds_data |>
summarise(total_beds = sum(beds_av, na.rm = TRUE),
total_occupancy = sum(occ_av, na.rm = TRUE),
.by = date) |>
.by = org_name) |>
mutate(perc_occ = total_occupancy / total_beds) |>
arrange(desc(perc_occ))
Expand Down
4 changes: 2 additions & 2 deletions session-intro.html

Large diffs are not rendered by default.

12 changes: 0 additions & 12 deletions session-intro.qmd
Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
---
title: "Introduction to R and Rstudio"
title-slide-attributes:
data-background-color: "#43464B"
subtitle: "Session - Introduction"
author: "Zoë Turner"
format:
revealjs:
theme: [default, nhsr-quarto.scss]
logo: https://raw.githubusercontent.com/nhs-r-community/assets/main/logo/nhsr-logo.svg
code-link: true
css: nhsr-quarto.scss
self-contained: true
preview-links: true
execute:
echo: false
eval: false
embed-resources: true
---

## Agenda - session one (about 3.5 hours)
Expand Down
80 changes: 51 additions & 29 deletions session-janitor.html

Large diffs are not rendered by default.

13 changes: 1 addition & 12 deletions session-janitor.qmd
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
---
title: "Introduction to R and Rstudio"
title-slide-attributes:
data-background-color: "#43464B"
subtitle: "Session - {janitor} clean data"
author: "Zoë Turner"
format:
revealjs:
theme: [default, nhsr-quarto.scss]
logo: https://raw.githubusercontent.com/nhs-r-community/assets/main/logo/nhsr-logo.svg
code-link: true
css: nhsr-quarto.scss
self-contained: true
preview-links: true
execute:
echo: true
eval: false
eval: false
---


Expand Down
96 changes: 56 additions & 40 deletions session-joins.html

Large diffs are not rendered by default.

11 changes: 0 additions & 11 deletions session-joins.qmd
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
---
title: "Introduction to R and Rstudio"
title-slide-attributes:
data-background-color: "#43464B"
subtitle: "Session - joins"
author: "Zoë Turner"
format:
revealjs:
theme: [default, nhsr-quarto.scss]
logo: https://raw.githubusercontent.com/nhs-r-community/assets/main/logo/nhsr-logo.svg
code-link: true
css: nhsr-quarto.scss
self-contained: true
preview-links: true
execute:
echo: true
eval: false
Expand Down
84 changes: 51 additions & 33 deletions session-messy-csv.html

Large diffs are not rendered by default.

11 changes: 0 additions & 11 deletions session-messy-csv.qmd
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
---
title: "Introduction to R and Rstudio"
title-slide-attributes:
data-background-color: "#43464B"
subtitle: "Session - Import a messy csv"
author: "Zoë Turner"
format:
revealjs:
theme: [default, nhsr-quarto.scss]
logo: https://raw.githubusercontent.com/nhs-r-community/assets/main/logo/nhsr-logo.svg
code-link: true
css: nhsr-quarto.scss
self-contained: true
preview-links: true
execute:
echo: false
eval: true
Expand Down
110 changes: 64 additions & 46 deletions session-objects.html

Large diffs are not rendered by default.

11 changes: 0 additions & 11 deletions session-objects.qmd
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
---
title: "Introduction to R and Rstudio"
title-slide-attributes:
data-background-color: "#43464B"
subtitle: "Session - objects"
author: "Zoë Turner"
format:
revealjs:
theme: [default, nhsr-quarto.scss]
logo: https://raw.githubusercontent.com/nhs-r-community/assets/main/logo/nhsr-logo.svg
code-link: true
css: nhsr-quarto.scss
self-contained: true
preview-links: true
execute:
echo: true
eval: true
Expand Down
80 changes: 51 additions & 29 deletions session-packages.html

Large diffs are not rendered by default.

11 changes: 0 additions & 11 deletions session-packages.qmd
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
---
title: "Introduction to R and Rstudio"
title-slide-attributes:
data-background-color: "#43464B"
subtitle: "Session - Packages"
author: "Zoë Turner"
format:
revealjs:
theme: [default, nhsr-quarto.scss]
logo: https://raw.githubusercontent.com/nhs-r-community/assets/main/logo/nhsr-logo.svg
code-link: true
css: nhsr-quarto.scss
self-contained: true
preview-links: true
execute:
echo: true
eval: false
Expand Down
79 changes: 50 additions & 29 deletions session-projects.html

Large diffs are not rendered by default.

11 changes: 0 additions & 11 deletions session-projects.qmd
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
---
title: "Introduction to R and Rstudio"
title-slide-attributes:
data-background-color: "#43464B"
subtitle: "Session - Projects"
author: "Zoë Turner"
format:
revealjs:
theme: [default, nhsr-quarto.scss]
logo: https://raw.githubusercontent.com/nhs-r-community/assets/main/logo/nhsr-logo.svg
code-link: true
css: nhsr-quarto.scss
self-contained: true
preview-links: true
execute:
eval: false
echo: false
Expand Down
84 changes: 53 additions & 31 deletions session-quarto.html

Large diffs are not rendered by default.

11 changes: 0 additions & 11 deletions session-quarto.qmd
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
---
title: "Introduction to R and Rstudio"
title-slide-attributes:
data-background-color: "#43464B"
subtitle: "Session - quarto reporting"
author: "Zoë Turner"
format:
revealjs:
theme: [default, nhsr-quarto.scss]
logo: https://raw.githubusercontent.com/nhs-r-community/assets/main/logo/nhsr-logo.svg
code-link: true
css: nhsr-quarto.scss
self-contained: true
preview-links: true
execute:
echo: true
eval: false
Expand Down
80 changes: 51 additions & 29 deletions session-rstudio.html

Large diffs are not rendered by default.

11 changes: 0 additions & 11 deletions session-rstudio.qmd
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
---
title: "Introduction to R and Rstudio"
title-slide-attributes:
data-background-color: "#43464B"
subtitle: "Session - R and R studio"
author: "Zoë Turner"
format:
revealjs:
theme: [default, nhsr-quarto.scss]
logo: https://raw.githubusercontent.com/nhs-r-community/assets/main/logo/nhsr-logo.svg
code-link: true
css: nhsr-quarto.scss
self-contained: true
preview-links: true
execute:
echo: true
eval: true
Expand Down
80 changes: 51 additions & 29 deletions session-sql.html

Large diffs are not rendered by default.

11 changes: 0 additions & 11 deletions session-sql.qmd
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
---
title: "Introduction to R and Rstudio"
title-slide-attributes:
data-background-color: "#43464B"
subtitle: "Session - SQL connections"
author: "Zoë Turner"
format:
revealjs:
theme: [default, nhsr-quarto.scss]
logo: https://raw.githubusercontent.com/nhs-r-community/assets/main/logo/nhsr-logo.svg
code-link: true
css: nhsr-quarto.scss
self-contained: true
preview-links: true
execute:
echo: true
eval: false
Expand Down
141 changes: 78 additions & 63 deletions session-stringr.html

Large diffs are not rendered by default.

11 changes: 0 additions & 11 deletions session-stringr.qmd
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
---
title: "Introduction to R and Rstudio"
title-slide-attributes:
data-background-color: "#43464B"
subtitle: "Session - {stringr}"
author: "Zoë Turner"
format:
revealjs:
theme: [default, nhsr-quarto.scss]
logo: https://raw.githubusercontent.com/nhs-r-community/assets/main/logo/nhsr-logo.svg
code-link: true
css: nhsr-quarto.scss
self-contained: true
preview-links: true
execute:
echo: true
eval: false
Expand Down
87 changes: 53 additions & 34 deletions session-styling.html

Large diffs are not rendered by default.

11 changes: 0 additions & 11 deletions session-styling.qmd
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
---
title: "Introduction to R and Rstudio"
title-slide-attributes:
data-background-color: "#43464B"
subtitle: "Session - styling code"
author: "Zoë Turner"
format:
revealjs:
theme: [default, nhsr-quarto.scss]
logo: https://raw.githubusercontent.com/nhs-r-community/assets/main/logo/nhsr-logo.svg
code-link: true
css: nhsr-quarto.scss
self-contained: true
preview-links: true
execute:
echo: true
eval: false
Expand Down
83 changes: 51 additions & 32 deletions session-vectors.html

Large diffs are not rendered by default.

11 changes: 0 additions & 11 deletions session-vectors.qmd
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
---
title: "Introduction to R and Rstudio"
title-slide-attributes:
data-background-color: "#43464B"
subtitle: "Session - Vectors"
author: "Zoë Turner"
format:
revealjs:
theme: [default, nhsr-quarto.scss]
logo: https://raw.githubusercontent.com/nhs-r-community/assets/main/logo/nhsr-logo.svg
code-link: true
css: nhsr-quarto.scss
self-contained: true
preview-links: true
execute:
echo: true
eval: false
Expand Down

0 comments on commit 94e1285

Please sign in to comment.