bookclub-advr

DSLC Advanced R Book Club
git clone https://git.eamoncaddigan.net/bookclub-advr.git
Log | Files | Refs | README | LICENSE

commit 5c6bf7e6a270e41d1a99fdb0071f87a1ac2583d7
parent 3757a28f2e209cdc0ee7c67f320dc73502a81fa3
Author: Jon Harmon <jonthegeek@gmail.com>
Date:   Sat, 23 Jul 2022 10:58:44 -0500

Cohort 6 vids and chats, 2-6. (#17)


Diffstat:
M02_Names_and_values.Rmd | 11+++++++++--
M03_Vectors.Rmd | 28+++++++++++++++++++---------
M04_Subsetting.Rmd | 8++++++--
M05_Control_flow.Rmd | 14++++++++++++--
M06_Functions.Rmd | 54++++++++++++++++++++++++++++++++++++++++++++++++++++--
5 files changed, 98 insertions(+), 17 deletions(-)

diff --git a/02_Names_and_values.Rmd b/02_Names_and_values.Rmd @@ -33,12 +33,19 @@ ### Cohort 6 -`r knitr::include_url("https://www.youtube.com/embed/URL")` +`r knitr::include_url("https://www.youtube.com/embed/O4Oo_qO7SIY")` <details> <summary> Meeting chat log </summary> ``` -LOG +00:16:57 Federica Gazzelloni: cohort 2 video: https://www.youtube.com/watch?v=pCiNj2JRK50 +00:18:39 Federica Gazzelloni: cohort 2 presentation: https://r4ds.github.io/bookclub-Advanced_R/Presentations/Week02/Cohort2_America/Chapter2Slides.html#1 +00:40:24 Arthur Shaw: Just the opposite, Ryan. Very clear presentation! +00:51:54 Trevin: parquet? +00:53:00 Arthur Shaw: We may all be right. {arrow} looks to deal with feather and parquet files: https://arrow.apache.org/docs/r/ +01:00:04 Arthur Shaw: Some questions for future meetings. (1) I find Ryan's use of slides hugely effective in conveying information. Would it be OK if future sessions (optionally) used slides? If so, should/could we commit slides to some folder on the repo? (2) I think reusing the images from Hadley's books really helps understanding and discussion. Is that OK to do? Here I'm thinking about copyright concerns. (If possible, I would rather not redraw variants of Hadley's images.) +01:01:35 Federica Gazzelloni: It's all ok, you can use past presentation, you don't need to push them to the repo, you can use the images from the book +01:07:19 Federica Gazzelloni: Can I use: gc(reset = TRUE) safely? ``` </details> diff --git a/03_Vectors.Rmd b/03_Vectors.Rmd @@ -752,16 +752,26 @@ attr(x, "y") <- 1 ### Cohort 6 -`r knitr::include_url("https://www.youtube.com/embed/URL")` +`r knitr::include_url("https://www.youtube.com/embed/mmcnkIjANps")` <details> +<summary>Meeting chat log</summary> -<summary> - -Meeting chat log - -</summary> - - LOG - +``` +00:10:18 Oluwafemi Oyedele: Hi, good evening +00:23:31 Federica Gazzelloni: Hi Kiante! +00:24:21 Federica Gazzelloni: Thanks Arthur +00:25:46 Trevin: Welcome Matt! +00:26:02 Matt Dupree: hello! thank you! +00:30:34 Federica Gazzelloni: Hello Matt! +00:30:46 Matt Dupree: hello! +00:38:24 Ryan Metcalf: `rlang::cpl()` = โ€œcomplexโ€. For example `0+1i` +00:55:37 Trevin: > two <- c(1,2,3) +> names(two) <- c("one", "two") +> two + one two <NA> + 1 2 3 +00:57:25 Ryan Metcalf: Excellent Trevin. You beat me to the output! Assuming we didn't supply the string, `NA` is entered instead. +01:08:50 Ryan Metcalf: Without further research, this is the "Unix Epochโ€. However, varying operating systems use different Epochs. +``` </details> diff --git a/04_Subsetting.Rmd b/04_Subsetting.Rmd @@ -427,13 +427,17 @@ x1 & y1 ### Cohort 6 -`r knitr::include_url("https://www.youtube.com/embed/URL")` +`r knitr::include_url("https://www.youtube.com/embed/-WjBA6yqW0Q")` <details> <summary> Meeting chat log </summary> ``` -LOG +00:36:02 Arthur Shaw: TIL that the subset operator has parameters. Thanks, Trevin! +00:38:55 Vaibhav Janve: its interesting that carriage "a" has two set of wheels instread of 4. I wonder that choice is because its atomic. +00:40:44 Arthur Shaw: @Vaibhav, because the load is lighter, the carriage needs fewer axles? ;) I agree: it's a confusing graphical choice. +00:41:11 Vaibhav Janve: lol +01:05:53 Vaibhav Janve: Thank you Trevin! ``` </details> diff --git a/05_Control_flow.Rmd b/05_Control_flow.Rmd @@ -247,12 +247,22 @@ for (i in 1:10) { ### Cohort 6 -`r knitr::include_url("https://www.youtube.com/embed/URL")` +`r knitr::include_url("https://www.youtube.com/embed/wg2QZ3rMIqM")` <details> <summary> Meeting chat log </summary> ``` -LOG +00:16:34 Federica Gazzelloni: https://github.com/r4ds/bookclub-Advanced_R +00:22:28 Federica Gazzelloni: https://stackoverflow.com/questions/50646133/dplyr-if-else-vs-base-r-ifelse +00:26:20 Trevin: case_when() is great, makes it easy to read +00:54:01 Trevin: out[I, ] +00:54:14 Trevin: out[i, ] +00:55:03 Trevin: I think you have to specify number of rows and columns before.. +00:55:30 Trevin: iterations = 10 + variables = 2 + + output <- matrix(ncol=variables, nrow=iterations) +00:55:43 Trevin: https://stackoverflow.com/questions/13442461/populating-a-data-frame-in-r-in-a-loop ``` </details> diff --git a/06_Functions.Rmd b/06_Functions.Rmd @@ -466,12 +466,62 @@ ggplot(output_full, aes(time, proportion, color = variable, group = variable)) + ### Cohort 6 -`r knitr::include_url("https://www.youtube.com/embed/URL")` +`r knitr::include_url("https://www.youtube.com/embed/BPd6-G9e32I")` <details> <summary> Meeting chat log </summary> ``` -LOG +00:01:11 Oluwafemi Oyedele: Hi, Good evening +00:01:22 Federica Gazzelloni: Hello! +00:43:19 Federica Gazzelloni: https://r4ds.github.io/bookclub-Advanced_R/QandA/docs/welcome.html +00:52:48 Priyanka: sounds good actually +00:52:59 Federica Gazzelloni: ๐Ÿ‘๐Ÿป +``` +</details> + +`r knitr::include_url("https://www.youtube.com/embed/GCDXXkBQrGk")` + +<details> +<summary> Meeting chat log </summary> + +``` +00:09:30 Oluwafemi Oyedele: Hi, Good evening +00:10:41 Federica Gazzelloni: Hi +00:14:40 Federica Gazzelloni: that's great! +00:54:24 Trevin: Also, sorry if you are repeating ๐Ÿ™‚ +00:54:52 Arthur Shaw: @ryan, thank you so much for the awesome synthesis! Could you share your reference list? I'd love to dive more deeply into the material you presented. +00:57:02 Ryan Metcalf: https://cran.r-project.org/doc/manuals/r-release/R-lang.pdf +00:59:32 Trevin: https://github.com/COHHIO/RmData +01:01:48 Ryan Metcalf: https://mastering-shiny.org/ +01:02:02 Ryan Metcalf: https://engineering-shiny.org/ +01:02:15 Arthur Shaw: @trevin, if you get bored with beepr, move to BRRR ;) +01:02:16 Arthur Shaw: https://github.com/brooke-watson/BRRR +01:09:27 Ryan Metcalf: This is amazing Trevin! I'll take a closer look. Is it ok to reach out to you with any questions? +01:09:43 Trevin: Yeah, feel free to reach out +``` +</details> + +`r knitr::include_url("https://www.youtube.com/embed/NaiQa_u-j1k")` + +<details> +<summary> Meeting chat log </summary> + +``` +00:05:34 Trevin: I didn't catch that +00:06:02 priyanka gagneja: i won't be presenting I said .. so you two have the stage +00:08:39 Federica Gazzelloni: no worries +00:08:46 Federica Gazzelloni: next time you do it +00:08:56 Federica Gazzelloni: did you sign up? +00:09:45 Trevin: Discord is free: https://discord.gg/rstudioconf2022 +00:10:04 Trevin: Free stream link: https://www.rstudio.com/conference/stream +00:24:32 Arthur Shaw: Maybe silly question: is the magrittr pipe an infix function? +00:32:15 Trevin: https://colinfay.me/playing-r-infix-functions/ +00:33:23 Arthur Shaw: Maybe another example of an infix function: lubridate's `%within%` +00:33:47 Trevin: That's a good one too ^ +00:33:55 priyanka gagneja: yes within would be good. +00:40:13 Arthur Shaw: no +00:49:50 Arthur Shaw: Sorry for dropping in and out. My WiFi router is having issues today--maybe is failing. +01:08:59 Trevin: Looking forward to it ๐Ÿ™‚ ``` </details>