5.4 Meeting Videos

5.4.1 Cohort 1

5.4.2 Cohort 2

5.4.3 Cohort 3

5.4.4 Cohort 4

5.4.5 Cohort 5

5.4.6 Cohort 6

Meeting chat 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

5.4.7 Cohort 7

Meeting chat log
00:40:18    Ryan Honomichl: What type of vector does each of the following calls to ifelse() return?

* "ifelse returns a value with the same shape as test which is filled with elements selected from either yes or no depending on whether the element of test is TRUE or FALSE."
00:42:11    Ryan Honomichl: "I recommend assigning the results of an if statement only when the entire expression fits on one line; otherwise it tends to be hard to read"
00:42:46    Ryan Honomichl: * When you use the single argument form without an `else` statement, `if` invisibly returns NULL if the condition is FALSE. 

-   Since functions like c() and paste() drop NULL inputs, this allows for a compact expression of certain idioms
00:54:15    collinberke:    https://docs.google.com/spreadsheets/d/1ScrbEw_-vB9DruaJhjtVY8HLQmuNPqyWeOOjmG6OY1M/edit?usp=sharing
00:58:46    collinberke:    https://www.youtube.com/@safe4democracy/videos