Skip to content

Commit

Permalink
Merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Susan Vanderplas committed Jan 10, 2025
2 parents e0be901 + ffdfcbd commit 60f2320
Show file tree
Hide file tree
Showing 14 changed files with 1,380 additions and 12 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/render.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ jobs:
# https://jasonraimondi.com/posts/install-google-fonts-in-github-workflow/
- name: Install Google Fonts
run: |
wget -O Noto_Sans.zip https://fonts.google.com/download?family=Noto%20Sans
unzip -d Noto_Sans/ Noto_Sans.zip
unzip -d Noto_Sans/ _extensions/Noto_Sans.zip
mv Noto_Sans /usr/share/fonts/
fc-cache -fv
Expand Down
Binary file added _extensions/Noto_Sans.zip
Binary file not shown.
7 changes: 2 additions & 5 deletions _freeze/site_libs/revealjs/dist/theme/quarto.css

Large diffs are not rendered by default.

11 changes: 7 additions & 4 deletions _freeze/slides/10-projects/execute-results/html.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
{
"hash": "4132447fc476bfdcaf2d3eb7e9652ae2",
"hash": "774d65a1399d6aa3301d6176afa14b08",
"result": {
"engine": "knitr",
"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",
"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",
"supporting": [],
"filters": [
"rmarkdown/pagebreak.lua"
],
"includes": {},
"includes": {
"include-after-body": [
"\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"
]
},
"engineDependencies": {},
"preserve": {},
"postProcess": true
Expand Down
19 changes: 19 additions & 0 deletions _freeze/slides/15-strings/execute-results/html.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"hash": "8005c7975805b65a0da51d6b681fa53a",
"result": {
"engine": "knitr",
"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",
"supporting": [],
"filters": [
"rmarkdown/pagebreak.lua"
],
"includes": {
"include-after-body": [
"\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"
]
},
"engineDependencies": {},
"preserve": {},
"postProcess": true
}
}
4 changes: 4 additions & 0 deletions _schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ schedule:
- href: homework/07-strings.qmd
categories: [HW, Week08]
date: 2024-03-24
- href: slides/15-strings.qmd
categories: [slides]
date: 2024-03-19
pub-date: 2024-03-18
- path: https://srvanderplas.github.io/stat-computing-r-python/part-wrangling/05-data-reshape.html
title: Reshaping Data
date: 2024-03-25
Expand Down
5 changes: 5 additions & 0 deletions index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ listing:
- homework/07-strings.qmd
- homework/08-reshape.qmd
- homework/09-join.qmd
- homework/10-datetime.qmd
- project/Dataset-Topics.qmd
- project/index.qmd
- project/pseudocode.qmd
- slides/01-Syllabus-and-Introductions.qmd
- slides/02-version-control.qmd
- slides/03-review-topics.qmd
Expand All @@ -28,6 +32,7 @@ listing:
- slides/09-graphics.qmd
- slides/10-graphics.qmd
- slides/10-projects.qmd
- slides/15-strings.qmd
- syllabus.qmd
- reading.yml
sort: date desc
Expand Down
10 changes: 10 additions & 0 deletions reading.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,13 @@
type: reading
image: figs/reading.svg
is_live: true
- path: https://srvanderplas.github.io/stat-computing-r-python/part-wrangling/08-functional-prog.html
title: Functional Programming and Lists
date: '2024-04-22'
pub.date: '2024-04-13'
categories:
- reading
- Week13
type: reading
image: figs/reading.svg
is_live: true
9 changes: 8 additions & 1 deletion slides/10-projects.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,14 @@ engine: knitr

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

![](../project/qrcode.png)
```{r, echo = F}
if (!file.exists("fig/proj_qr_code.svg")) {
library(qrcode)
generate_svg(qr_code("https://classroom.github.com/a/ZxPi9guO"), filename = "fig/proj_qr_code.svg")
}
```

![](fig/proj_qr_code.svg)

:::

Expand Down
25 changes: 25 additions & 0 deletions slides/15-strings.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
title: Working with Strings
author: Stat 251
categories:
- slides
- Week08
engine: knitr
format:
revealjs:
navigation-mode: vertical
logo: N.svg
theme: inverse.scss
includes:
in_header: header.html
date: '2024-03-19'
---

## Major String Operations

Operation | Sketch
--- | ---
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."}
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."}
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."}

131 changes: 131 additions & 0 deletions slides/fig/find-and-replace.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 60f2320

Please sign in to comment.