-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp-exercises.qmd
29 lines (22 loc) · 1.07 KB
/
app-exercises.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Exercises {#exercises}
You can download all [exercises and data files](exercises/exercises.zip) below as a ZIP archive. The answers are not included in the zip file.
```{r, echo = FALSE, results = "asis"}
exercises <- data.frame(
n = 1:9,
exercise = list.files("exercises", "\\d.*_exercise.qmd", full.names = TRUE),
answer = list.files("exercises", "\\d.*_answers.qmd", full.names = TRUE),
exercise_html = list.files("exercises", "\\d.*_exercise.html", full.names = TRUE),
answer_html = list.files("exercises", "\\d.*_answers.html", full.names = TRUE),
desc = c("Intro to R, functions, R markdown",
"Create an R Markdown project",
"Data visualisation",
"Data",
"Data relations",
"Tidy Data",
"Data wrangling",
"Functions and iteration",
"Simulation")
) |>
dplyr::mutate(entry = glue::glue("* Chapter {n}: {desc}\n * Exercise: [Rmd]({exercise}) | [html]({exercise_html}); Answers: [Rmd]({answer}) | [html]({answer_html})"))
paste(exercises$entry, collapse = "\n") |> cat()
```