Skip to content

Commit

Permalink
add data url
Browse files Browse the repository at this point in the history
  • Loading branch information
nrennie committed Feb 20, 2024
1 parent c1aebcc commit 24102fe
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
4 changes: 3 additions & 1 deletion examples/example_01.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ library(tidyverse)
library(mgcv)

# Load data
covid <- read_csv("data/covid.csv")
covid <- readr::read_csv(
"https://raw.githubusercontent.com/nrennie/f4sg-gams/main/data/covid.csv"
)

# Subset data to look at just GBR
gbr_data <- covid |>
Expand Down
4 changes: 3 additions & 1 deletion examples_blank/example_01.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@


# Load data

covid <- readr::read_csv(
"https://raw.githubusercontent.com/nrennie/f4sg-gams/main/data/covid.csv"
)

# Subset data to look at just GBR

Expand Down
4 changes: 3 additions & 1 deletion exercise_solutions/exercise_solutions_01.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ library(tidyverse)
library(mgcv)

# Load data
covid <- read_csv("data/covid.csv")
covid <- readr::read_csv(
"https://raw.githubusercontent.com/nrennie/f4sg-gams/main/data/covid.csv"
)

# Subset data to look at just GBR
fra_data <- covid |>
Expand Down
5 changes: 3 additions & 2 deletions exercises/exercise_01.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Load packages
library(tidyverse)
library(mgcv)

# Load data
covid <- read_csv("data/covid.csv")
covid <- readr::read_csv(
"https://raw.githubusercontent.com/nrennie/f4sg-gams/main/data/covid.csv"
)

# Subset data to look at just FRA

Expand Down

0 comments on commit 24102fe

Please sign in to comment.