class: monash-bg-blue center middle hide-slide-number <div class="bg-black white" style="width:45%;right:0;bottom:0;padding-left:5px;border: solid 4px white;margin: auto;"> <i class="fas fa-exclamation-circle"></i> These slides are viewed best by Chrome and occasionally need to be refreshed if elements did not load properly. See here for <a href=day1-session0.pdf>PDF <i class="fas fa-file-pdf"></i></a>. </div> <br> .white[Press the **right arrow** to progress to the next slide!] --- count: false background-image: url(images/bg4.jpg) background-size: cover class: hide-slide-number title-slide <div class="grid-row" style="grid: 1fr / 2fr;"> .item.center[ # <span style="text-shadow: 2px 2px 30px white;">Data Wrangling with R: Day 1</span> <!-- ## <span style="color:;text-shadow: 2px 2px 30px black;">Getting started</span> --> ] .center.shade_black.animated.bounceInUp.slower[ <br><br> ## <span style="color: #ccf2ff; text-shadow: 10px 10px 100px white;">Getting started</span> <br> Presented by Emi Tanaka Department of Econometrics and Business Statistics <img src="images/monash-one-line-reversed.png" style="width:500px"><br>
<i class="fas fa-envelope faa-float animated "></i>
emi.tanaka@monash.edu
<i class="fab fa-twitter faa-float animated faa-fast "></i>
@statsgen .bottom_abs.width100.bg-black[ 1st December 2020 @ Statistical Society of Australia | Zoom ] ] </div> --- <div class="grid" style="grid: 1fr / 1.2fr 2fr;"> <div class="item white monash-bg-blue border-right"> <br> <div class="circle-image"> <center> <img src="images/avatar.png" width = "150px"/> </center> </div> **Emi Tanaka** <br> *Lecturer in Statistics*<br> Monash University <br> <i class="fas fa-globe"></i> https://emitanaka.org/ <i class="fas fa-envelope"></i> emi.tanaka@monash.edu <i class="fab fa-twitter"></i> @statsgen </div> <div class="item"> <h1>About your instructor</h1> <ul> <li>I teach R at university courses as well as use it daily for research and hobby
<i class="fab fa-reddit-alien faa-spin animated-hover "></i>
</li> <li>My research includes mixed models, experimental design, statistical genetics and data visualisation.</li> <li>My main application area is bioinformatics and agricultural, particularly plant breeding.</li> <li>My childhood dream was to be a comic artist.. it's not too late, is it?</li> <!-- <div class="calendar"> --> <!-- Loading github commits data. --> <!-- </div> --> </ul> </div> </div> --- <div class="grid" style="grid: 1fr / 1.2fr 2fr;"> <div class="item white monash-bg-blue border-right"> <br> <div class="circle-image"> <center> <img src="images/FanCheng.png" width = "200px"/> </center> </div> **Fan Cheng** <br> *PhD Student*<br> Monash University <br> <i class="fas fa-globe"></i> https://fancheng.me/ <i class="fas fa-envelope"></i> Fan.Cheng@monash.edu <i class="fab fa-twitter"></i> @fanchengfc </div> <div class="item"> <h1>About your helper</h1> <ul> <li>I am a second-year PhD student in Statistics at Monash</li> <li>I work for the Monash Data Fluency team to teach workshops on R, Python, Git and Unix</li> <li>My research project is about manifold learning based on empirical probability distributions. If you are interested, I am more than happy to talk about it :)</li> </ul> </div> </div> --- class: center middle <i class="fas fa-user-alt monash-blue font_large animated bounce"></i> .font_large.monash-blue[Introduce yourself in the chat!] <br> What's your profession? Where do you live? What's your hobby? What's would you like for people to know about you? --- # Day 1 Schedule <center> Tue 1st Dec 2020 </center> Time | Activity :----|:--- 1.00-1.30 | Registration + Installation Help 1.30-2.00 | **Lesson 1:** Base R and `tidyverse` 2.00-2.15 | *Break out session* 2.15-2.45 | **Lesson 2:** Data manipulation with `dplyr` 2.45-3.00 | *Break out session* 3.00-3.30 | *Coffee Break* 3.30-4.00 | **Lesson 3:** Manipulating strings with `stringr` 4.00-4.15 | *Break out session* 4.15-4.45 | **Lesson 4:** Tidying data with `tidyr` 4.45-5.00 | *Break out session* --- # Day 2 Schedule <center> Wed 2nd Dec 2020 </center> Time | Activity :----|:--- 1.00-1.30 | Installation Help 1.30-2.00 | **Lesson 1:** Relational data wrangling, starring `janitor` and `broom` 2.00-2.15 | *Break out session* 2.15-2.45 | **Lesson 2:** Formatting factors with `forcats` 2.45-3.00 | *Break out session* 3.00-3.30 | *Coffee Break* 3.30-4.00 | **Lesson 3:** Dealing with dates with `lubridate` 4.00-4.15 | *Break out session* 4.15-4.45 | **Lesson 4:** Advanced data wrangling, starring `purrr` 4.45-5.00 | *Break out session* --- # Getting Started ```r remotes::install_github("emitanaka/dwexercise") ``` .info-box.pad20[ * Find the latest updated material at .blue[<i class="fas fa-globe"></i> http://emitanaka.org/datawrangle-workshop-ssavic/] * All materials are hosted in GitHub repo [here](https://github.com/emitanaka/datawrangle-workshop-ssavic) * All exercises are hosted as an R-package on GitHub repo [here](https://github.com/emitanaka/dwexercise) * You can download the current material [here](https://github.com/emitanaka/datawrangle-workshop-ssavic/archive/main.zip) ] .font_small[ * Some materials may be updated before the workshop is completed so it will be better to re-download the latest material at the conclusion of the workshop. * I will send you a follow up email with link to download all material ] --- class: center # Help me! <br><br> You can write in the chat. <br> You can ask (unmute yourself). <br> You can raise hand from zoom under Participants. <img src="images/zoom-help.png"> <br> We'll come around in breakout sessions. --- class: font_smaller background-color: #e5e5e5 # Session Information .scroll-350[ ```r devtools::session_info() ``` ``` ## ─ Session info ─────────────────────────────────────────────────────────────── ## setting value ## version R version 4.0.1 (2020-06-06) ## os macOS Catalina 10.15.7 ## system x86_64, darwin17.0 ## ui X11 ## language (EN) ## collate en_AU.UTF-8 ## ctype en_AU.UTF-8 ## tz Australia/Melbourne ## date 2020-11-30 ## ## ─ Packages ─────────────────────────────────────────────────────────────────── ## package * version date lib source ## anicon 0.1.0 2020-06-21 [1] Github (emitanaka/anicon@0b756df) ## assertthat 0.2.1 2019-03-21 [2] CRAN (R 4.0.0) ## callr 3.5.1 2020-10-13 [1] CRAN (R 4.0.2) ## cli 2.2.0 2020-11-20 [1] CRAN (R 4.0.1) ## crayon 1.3.4 2017-09-16 [2] CRAN (R 4.0.0) ## desc 1.2.0 2018-05-01 [2] CRAN (R 4.0.0) ## devtools 2.3.2 2020-09-18 [1] CRAN (R 4.0.2) ## digest 0.6.27 2020-10-24 [1] CRAN (R 4.0.2) ## ellipsis 0.3.1 2020-05-15 [2] CRAN (R 4.0.0) ## evaluate 0.14 2019-05-28 [2] CRAN (R 4.0.0) ## fansi 0.4.1 2020-01-08 [2] CRAN (R 4.0.0) ## fs 1.5.0 2020-07-31 [1] CRAN (R 4.0.2) ## glue 1.4.2 2020-08-27 [1] CRAN (R 4.0.2) ## here 0.1 2017-05-28 [2] CRAN (R 4.0.0) ## htmltools 0.5.0 2020-06-16 [1] CRAN (R 4.0.2) ## icon 0.1.0 2020-06-21 [1] Github (emitanaka/icon@8458546) ## knitr 1.30 2020-09-22 [1] CRAN (R 4.0.2) ## magrittr 2.0.1 2020-11-17 [1] CRAN (R 4.0.2) ## memoise 1.1.0 2017-04-21 [2] CRAN (R 4.0.0) ## pkgbuild 1.1.0 2020-07-13 [2] CRAN (R 4.0.1) ## pkgload 1.1.0 2020-05-29 [2] CRAN (R 4.0.0) ## prettyunits 1.1.1 2020-01-24 [2] CRAN (R 4.0.0) ## processx 3.4.4 2020-09-03 [1] CRAN (R 4.0.2) ## ps 1.4.0 2020-10-07 [1] CRAN (R 4.0.2) ## R6 2.5.0 2020-10-28 [1] CRAN (R 4.0.2) ## remotes 2.2.0 2020-07-21 [1] CRAN (R 4.0.2) ## rlang 0.4.8 2020-10-08 [1] CRAN (R 4.0.2) ## rmarkdown 2.5 2020-10-21 [1] CRAN (R 4.0.1) ## rprojroot 2.0.2 2020-11-15 [1] CRAN (R 4.0.2) ## sessioninfo 1.1.1 2018-11-05 [2] CRAN (R 4.0.0) ## stringi 1.5.3 2020-09-09 [2] CRAN (R 4.0.2) ## stringr 1.4.0 2019-02-10 [2] CRAN (R 4.0.0) ## testthat 3.0.0 2020-10-31 [1] CRAN (R 4.0.2) ## usethis 1.6.3 2020-09-17 [1] CRAN (R 4.0.2) ## withr 2.3.0 2020-09-22 [1] CRAN (R 4.0.2) ## xaringan 0.18 2020-10-21 [1] CRAN (R 4.0.2) ## xfun 0.19 2020-10-30 [1] CRAN (R 4.0.2) ## yaml 2.2.1 2020-02-01 [1] CRAN (R 4.0.2) ## ## [1] /Users/etan0038/Library/R/4.0/library ## [2] /Library/Frameworks/R.framework/Versions/4.0/Resources/library ``` ] These slides are licensed under <br><center><a href="https://creativecommons.org/licenses/by-sa/3.0/au/"><img src="images/cc.svg" style="height:2em;"/><img src="images/by.svg" style="height:2em;"/><img src="images/sa.svg" style="height:2em;"/></a></center>