07.qmd (1098B)
1 --- 2 title: Cohort 7 3 --- 4 {{< video https://www.youtube.com/embed/LBU-Ew_IM7A >}} 5 {{< video https://www.youtube.com/embed/W9CoQ15NlOc >}} 6 <details> 7 <summary>Meeting chat log</summary> 8 ``` 9 00:40:18 Ryan Honomichl: What type of vector does each of the following calls to ifelse() return? 10 * "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." 11 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" 12 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. 13 - Since functions like c() and paste() drop NULL inputs, this allows for a compact expression of certain idioms 14 00:54:15 collinberke: https://docs.google.com/spreadsheets/d/1ScrbEw_-vB9DruaJhjtVY8HLQmuNPqyWeOOjmG6OY1M/edit?usp=sharing 15 00:58:46 collinberke: https://www.youtube.com/@safe4democracy/videos 16 ``` 17 </details>