Skip to content

Commit 60f2320

Browse files
author
Susan Vanderplas
committed
Merge
2 parents e0be901 + ffdfcbd commit 60f2320

File tree

14 files changed

+1380
-12
lines changed

14 files changed

+1380
-12
lines changed

.github/workflows/render.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ jobs:
2222
# https://jasonraimondi.com/posts/install-google-fonts-in-github-workflow/
2323
- name: Install Google Fonts
2424
run: |
25-
wget -O Noto_Sans.zip https://fonts.google.com/download?family=Noto%20Sans
26-
unzip -d Noto_Sans/ Noto_Sans.zip
25+
unzip -d Noto_Sans/ _extensions/Noto_Sans.zip
2726
mv Noto_Sans /usr/share/fonts/
2827
fc-cache -fv
2928

_extensions/Noto_Sans.zip

45.4 MB
Binary file not shown.

_freeze/site_libs/revealjs/dist/theme/quarto.css

+2-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_freeze/slides/10-projects/execute-results/html.json

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
{
2-
"hash": "4132447fc476bfdcaf2d3eb7e9652ae2",
2+
"hash": "774d65a1399d6aa3301d6176afa14b08",
33
"result": {
4-
"engine": "knitr",
5-
"markdown": "---\ntitle: \"Projects\"\nauthor: Stat 251\ndate: April 6, 2023\ncategories: slides\nformat: revealjs\nengine: knitr\n---\n\n\n\n## Project Overview\n\n::: columns\n\n::: {.column width=\"70%\"}\n\n- Create a TidyTuesday style screencast \n[[Examples: https://www.rscreencasts.com/](https://www.rscreencasts.com/)]{.small}\n\n- Analyze a [TidyTuesday dataset from 2023](https://github.com/rfordatascience/tidytuesday) using R or Python\n\n- Approximately 45 minutes long\n\n- Show at least 4 different techniques you learned in Stat 251 this semester\n\n:::\n\n::: {.column width=\"5%\"}\n:::\n\n::: {.column width=\"20%\"}\n\n[GH link](https://classroom.github.com/a/ZxPi9guO)\n\n![](../project/qrcode.png)\n\n:::\n\n:::\n\n## Part 1 - Planning\n\nWork: In class, April 18\n\nDue: April 18, 6pm\n\nTell me: \n\n- What dataset you're using\n\n- What you're going to investigate\n\n- What Stat 251 topics you're going to cover\n\n\n## Part 2 - Script Outline\n\nWork: In class, April 20\n\nDue: April 24, 6pm\n\n- Provide a (rough) script for your screen cast\n \n - Explain how the techniques work\n \n - Discuss any challenges you had analyzing this data\n \n - Include the mistakes you made along the way!\n \n- Include pseudocode/actual code for each topic\n\n - Does not have to actually work at this point\n\n## Part 3 - Recording\n\nWork: On your own \n\nDue: May 4, 6pm\n\n- Screencast uploaded to YouTube or YuJa\n\n- Approximate time index provided for each technique you demonstrate (on GitHub)\n\n- Final code file uploaded to github repository\n\n## Part 4 - Peer Review\n\n- In place of the final exam:\n\n - Watch 2 screencasts\n \n - Peer evaluations - leave a comment on Canvas\n \n - I will provide a rubric\n\n- Take place between May 4 and Finals week\n",
4+
"markdown": "---\ntitle: Projects\nauthor: Stat 251\ndate: '2024-04-11'\ncategories:\n- slides\n- Project\n- Week12\n- Week11\nformat: revealjs\nengine: knitr\n---\n\n\n## Project Overview\n\n::: columns\n\n::: {.column width=\"70%\"}\n\n- Create a TidyTuesday style screencast \n[[Examples: https://www.rscreencasts.com/](https://www.rscreencasts.com/)]{.small}\n\n- Analyze a [TidyTuesday dataset from 2023](https://github.com/rfordatascience/tidytuesday) using R or Python\n\n- Approximately 45 minutes long\n\n- Show at least 4 different techniques you learned in Stat 251 this semester\n\n:::\n\n::: {.column width=\"5%\"}\n:::\n\n::: {.column width=\"20%\"}\n\n[GH link](https://classroom.github.com/a/ZxPi9guO)\n\n\n::: {.cell hash='10-projects_cache/revealjs/unnamed-chunk-1_64884a9e4534a94a7fa8d36cfa4a957c'}\n\n:::\n\n\n![](fig/proj_qr_code.svg)\n\n:::\n\n:::\n\n## Part 1 - Planning\n\nWork: In class, April 18\n\nDue: April 18, 6pm\n\nTell me: \n\n- What dataset you're using\n\n- What you're going to investigate\n\n- What Stat 251 topics you're going to cover\n\n\n## Part 2 - Script Outline\n\nWork: In class, April 20\n\nDue: April 24, 6pm\n\n- Provide a (rough) script for your screen cast\n \n - Explain how the techniques work\n \n - Discuss any challenges you had analyzing this data\n \n - Include the mistakes you made along the way!\n \n- Include pseudocode/actual code for each topic\n\n - Does not have to actually work at this point\n\n## Part 3 - Recording\n\nWork: On your own \n\nDue: May 4, 6pm\n\n- Screencast uploaded to YouTube or YuJa\n\n- Approximate time index provided for each technique you demonstrate (on GitHub)\n\n- Final code file uploaded to github repository\n\n## Part 4 - Peer Review\n\n- In place of the final exam:\n\n - Watch 2 screencasts\n \n - Peer evaluations - leave a comment on Canvas\n \n - I will provide a rubric\n\n- Take place between May 4 and Finals week\n",
65
"supporting": [],
76
"filters": [
87
"rmarkdown/pagebreak.lua"
98
],
10-
"includes": {},
9+
"includes": {
10+
"include-after-body": [
11+
"\n<script>\n // htmlwidgets need to know to resize themselves when slides are shown/hidden.\n // Fire the \"slideenter\" event (handled by htmlwidgets.js) when the current\n // slide changes (different for each slide format).\n (function () {\n // dispatch for htmlwidgets\n function fireSlideEnter() {\n const event = window.document.createEvent(\"Event\");\n event.initEvent(\"slideenter\", true, true);\n window.document.dispatchEvent(event);\n }\n\n function fireSlideChanged(previousSlide, currentSlide) {\n fireSlideEnter();\n\n // dispatch for shiny\n if (window.jQuery) {\n if (previousSlide) {\n window.jQuery(previousSlide).trigger(\"hidden\");\n }\n if (currentSlide) {\n window.jQuery(currentSlide).trigger(\"shown\");\n }\n }\n }\n\n // hookup for slidy\n if (window.w3c_slidy) {\n window.w3c_slidy.add_observer(function (slide_num) {\n // slide_num starts at position 1\n fireSlideChanged(null, w3c_slidy.slides[slide_num - 1]);\n });\n }\n\n })();\n</script>\n\n"
12+
]
13+
},
1114
"engineDependencies": {},
1215
"preserve": {},
1316
"postProcess": true
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"hash": "8005c7975805b65a0da51d6b681fa53a",
3+
"result": {
4+
"engine": "knitr",
5+
"markdown": "---\ntitle: Working with Strings\nauthor: Stat 251\ncategories:\n- slides\n- Week08\nengine: knitr\nformat:\n revealjs:\n navigation-mode: vertical\n logo: N.svg\n theme: inverse.scss\n includes:\n in_header: header.html\ndate: '2024-03-19'\n---\n\n\n## Major String Operations\n\nOperation | Sketch\n--- | ---\nFind and replace (or remove) | ![](fig/find-and-replace.svg){fig-alt=\"A row of three boxes. In the next row, the middle box is replaced with a different, slightly larger box.\"}\nSplit data into multiple columns | ![](fig/split-cols.svg){fig-alt=\"A column consisting of multiple rows of three boxes. An arrow indicates a transition from the single column to multiple columns, each containing only one type of box.\"}\nJoin data into a single column | ![](fig/join-cols.svg){fig-alt=\"A set of three columns, each containing one type of box. An arrow indicates a transition whereby in each row, the three columns of data are combined into a single column.\"}\n\n",
6+
"supporting": [],
7+
"filters": [
8+
"rmarkdown/pagebreak.lua"
9+
],
10+
"includes": {
11+
"include-after-body": [
12+
"\n<script>\n // htmlwidgets need to know to resize themselves when slides are shown/hidden.\n // Fire the \"slideenter\" event (handled by htmlwidgets.js) when the current\n // slide changes (different for each slide format).\n (function () {\n // dispatch for htmlwidgets\n function fireSlideEnter() {\n const event = window.document.createEvent(\"Event\");\n event.initEvent(\"slideenter\", true, true);\n window.document.dispatchEvent(event);\n }\n\n function fireSlideChanged(previousSlide, currentSlide) {\n fireSlideEnter();\n\n // dispatch for shiny\n if (window.jQuery) {\n if (previousSlide) {\n window.jQuery(previousSlide).trigger(\"hidden\");\n }\n if (currentSlide) {\n window.jQuery(currentSlide).trigger(\"shown\");\n }\n }\n }\n\n // hookup for slidy\n if (window.w3c_slidy) {\n window.w3c_slidy.add_observer(function (slide_num) {\n // slide_num starts at position 1\n fireSlideChanged(null, w3c_slidy.slides[slide_num - 1]);\n });\n }\n\n })();\n</script>\n\n"
13+
]
14+
},
15+
"engineDependencies": {},
16+
"preserve": {},
17+
"postProcess": true
18+
}
19+
}

_schedule.yml

+4
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ schedule:
132132
- href: homework/07-strings.qmd
133133
categories: [HW, Week08]
134134
date: 2024-03-24
135+
- href: slides/15-strings.qmd
136+
categories: [slides]
137+
date: 2024-03-19
138+
pub-date: 2024-03-18
135139
- path: https://srvanderplas.github.io/stat-computing-r-python/part-wrangling/05-data-reshape.html
136140
title: Reshaping Data
137141
date: 2024-03-25

index.qmd

+5
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ listing:
1818
- homework/07-strings.qmd
1919
- homework/08-reshape.qmd
2020
- homework/09-join.qmd
21+
- homework/10-datetime.qmd
22+
- project/Dataset-Topics.qmd
23+
- project/index.qmd
24+
- project/pseudocode.qmd
2125
- slides/01-Syllabus-and-Introductions.qmd
2226
- slides/02-version-control.qmd
2327
- slides/03-review-topics.qmd
@@ -28,6 +32,7 @@ listing:
2832
- slides/09-graphics.qmd
2933
- slides/10-graphics.qmd
3034
- slides/10-projects.qmd
35+
- slides/15-strings.qmd
3136
- syllabus.qmd
3237
- reading.yml
3338
sort: date desc

reading.yml

+10
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,13 @@
118118
type: reading
119119
image: figs/reading.svg
120120
is_live: true
121+
- path: https://srvanderplas.github.io/stat-computing-r-python/part-wrangling/08-functional-prog.html
122+
title: Functional Programming and Lists
123+
date: '2024-04-22'
124+
pub.date: '2024-04-13'
125+
categories:
126+
- reading
127+
- Week13
128+
type: reading
129+
image: figs/reading.svg
130+
is_live: true

slides/10-projects.qmd

+8-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,14 @@ engine: knitr
3535

3636
[GH link](https://classroom.github.com/a/ZxPi9guO)
3737

38-
![](../project/qrcode.png)
38+
```{r, echo = F}
39+
if (!file.exists("fig/proj_qr_code.svg")) {
40+
library(qrcode)
41+
generate_svg(qr_code("https://classroom.github.com/a/ZxPi9guO"), filename = "fig/proj_qr_code.svg")
42+
}
43+
```
44+
45+
![](fig/proj_qr_code.svg)
3946

4047
:::
4148

slides/15-strings.qmd

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: Working with Strings
3+
author: Stat 251
4+
categories:
5+
- slides
6+
- Week08
7+
engine: knitr
8+
format:
9+
revealjs:
10+
navigation-mode: vertical
11+
logo: N.svg
12+
theme: inverse.scss
13+
includes:
14+
in_header: header.html
15+
date: '2024-03-19'
16+
---
17+
18+
## Major String Operations
19+
20+
Operation | Sketch
21+
--- | ---
22+
Find and replace (or remove) | ![](fig/find-and-replace.svg){fig-alt="A row of three boxes. In the next row, the middle box is replaced with a different, slightly larger box."}
23+
Split data into multiple columns | ![](fig/split-cols.svg){fig-alt="A column consisting of multiple rows of three boxes. An arrow indicates a transition from the single column to multiple columns, each containing only one type of box."}
24+
Join data into a single column | ![](fig/join-cols.svg){fig-alt="A set of three columns, each containing one type of box. An arrow indicates a transition whereby in each row, the three columns of data are combined into a single column."}
25+

slides/fig/find-and-replace.svg

+131
Loading

0 commit comments

Comments
 (0)