06.qmd (721B)
1 --- 2 title: Cohort 6 3 --- 4 {{< video https://www.youtube.com/embed/wg2QZ3rMIqM >}} 5 <details> 6 <summary> Meeting chat log </summary> 7 ``` 8 00:16:34 Federica Gazzelloni: https://github.com/r4ds/bookclub-Advanced_R 9 00:22:28 Federica Gazzelloni: https://stackoverflow.com/questions/50646133/dplyr-if-else-vs-base-r-ifelse 10 00:26:20 Trevin: case_when() is great, makes it easy to read 11 00:54:01 Trevin: out[I, ] 12 00:54:14 Trevin: out[i, ] 13 00:55:03 Trevin: I think you have to specify number of rows and columns before.. 14 00:55:30 Trevin: iterations = 10 15 variables = 2 16 output <- matrix(ncol=variables, nrow=iterations) 17 00:55:43 Trevin: https://stackoverflow.com/questions/13442461/populating-a-data-frame-in-r-in-a-loop 18 ``` 19 </details>