class: center, middle, inverse, title-slide .title[ # DS Skills Lab 01 ] .subtitle[ ##
Guess who’s back, back R-gain
] .author[ ### Dr Danielle Evans & Dr Jennifer Mankin ] .date[ ### 30 Sept 2022 ] --- <style type="text/css"> a { color: #f77b00; } </style> ## Overview - **Module Information** - **Important Updates** + RStudio Cloud + Quarto + The Battle of the Pipes: Magrittr <b><span class="rainbow">%>%</span></b> vs Native <b><span class="dull">|></span></b> - **ExtRas** + ChatRday, ChallengRs, Hex Awards, LeadeRboard - **KahootR** --- ## Welcome to Discovering Statistics! <p><img style="width: 20%; height: 20%; float: right; padding: 1px;" src="data:image/png;base64,#img/discovr_hex.png"/></p> - In this module we will build on the foundational skills in **R** and **critical** and **statistical thinking** from first year - We'll be by diving into the many permutations of the **linear model** first introduced in **Analysing Data** last term - At the end of this module, you will have a diverse toolkit of **ideas**, **techniques**, and **analyses** for your third year projects! --- ## Module Information **Module Leads** - **Dr Danielle Evans** + Practicals, skills labs, coursework - **Dr Jennifer Mankin** + Practicals, skills labs - **Professor Andy Field** + Lectures, tutorials, exam - [Join the Discord server](https://discord.gg/Tt3uF3Tzwh) to ask us questions about the content! --- ## Teaching Sessions - **Practicals** + Led by **Dr Danielle Evans** and **Dr Jennifer Mankin** along with a team of **doctoral tutors** + These sessions alternate each week between online and in person - **Lectures** + Delivered in person by **Professor Andy Field** + Usually one lecture per week but for the first two weeks of term only there are two lectures per week - check your timetable on Sussex Direct to make sure you don't miss them! - **Skills Labs** + Delivered in person by **Dr Danielle Evans** and **Dr Jennifer Mankin** <br> .center[ <b>See each linked week page on Canvas for slides, materials, and more information!</b> ] --- ## Assessments - Look on [Canvas](https://canvas.sussex.ac.uk/courses/23086/pages/assessment-information) for more information about assessments! - [Practical Worksheets](https://canvas.sussex.ac.uk/courses/23086/pages/worksheet-information) every week - 20% - [Take Away Paper (TAP)](https://canvas.sussex.ac.uk/courses/23086/pages/tap-assessment-information) in Week 7 - 25% - [Research Participation (SONA)](https://canvas.sussex.ac.uk/courses/23086/pages/research-participation-module-credits-scheme) - 5% - [Exam](https://canvas.sussex.ac.uk/courses/23086/pages/exam-resources) - 50% - You will also use the analysis and interpretation from the **TAP** assessment to complete your **Developmental Psychology lab report** due in Week 10 --- ## Important Updates - There have been a number of updates and developments in the **RStudio** world and in the methods modules over the summer: + **RStudio Cloud** + **Quarto** + **Native Pipe |>** - We'll be implementing some of these changes in your modules - And you might start seeing them in online materials/forums so we're briefly introducing them now too! --- ## RStudio Cloud - Traditionally, we've taught **R** using the desktop version of **RStudio** - New for this year, we're going to be using the **RStudio Cloud** which should make learning **R** a little easier - Everything is setup on the Cloud for you - if you haven't had your practical yet do make sure to join the Discovering Statistics Workspace beforehand using the link in the sign up email - We only just got access to it at the weekend so stay tuned for some tutorial videos coming soon! --- ## Quarto - The next new thing in the RStudio World is **Quarto**! - <p><img style="width: 100px; float: left; padding: 0px 7px 0px 0px;" src="data:image/png;base64,#img/quarto.png"/> is the next generation of <span style="color:#1d4289"><b>R Markdown!</b></span></p> - Recognisable by the **.qmd** file extension as opposed to the **.Rmd** file extension - Almost identical to **.Rmd documents** in the way they look and work - But with the plus of an integrated **visual markdown editor** 🥳 which should make using **R** easier - We have switched to Quarto for all materials in practicals --- ## Quarto - You'll encounter **Quarto** in your practicals this week if you haven't done so already - It looks very similar to RMarkdown, except you'll have the choice of using the **Source pane** (like what we've used previously) or the new **Visual editor** mode - The visual editor is more similar to MS Word-like software compared to the old source mode: <img src="data:image/png;base64,#./img/vized.png" width="70%" style="display: block; margin: auto;" /> --- ## Magrittr <b><span class="rainbow">%>%</span></b> vs Native <b><span class="dull">|></span></b> - Previously, we've used the `magrittr` pipe **%>%** to chain commands together + But the `magrittr` pipe requires `magrittr` or `tidyverse` to be loaded - We now have a native pipe **|>** which works in a similar way, but without needing those packages .pull-left[ **Magrittr pipe:** ```r data `%>%` group_by(gender) `%>%` summarise(mean = mean(age)) ``` ] .pull-right[ **Native pipe:** ```r data `|>` group_by(gender) `|>` summarise(mean = mean(age)) ``` ] <br> - **We are NOT switching to the new native pipe** on this module but we will show you examples of both - This is because you might start to see the new native pipe in other R documentation, materials & forums --- ## ChatRday <p><img style="width: 25%; height: 25%; float: right; padding: 1px;" src="data:image/png;base64,#img/fhex.png"/></p> - Join 'steminists' and methods module leads Dr Danielle Evans, Dr Jennifer Mankin & Jenny Terry for an informal, open [Zoom chat](https://universityofsussex.zoom.us/j/92320520007) about **R** - We will invite and answer questions, debunk misunderstandings, enthuse about cool stuff in R, and announce that week's **challengR** - We'll hold a session **every Thursday at 11:00** UK time - The sessions are mostly unstructured: + but we'll venture into the **Upside Down** and we'll show you how you can find your own **Vecna song** in R using the spotifyR package + we'll play around with some data from **RuPaul's Drag Race** + we'll have a go at creating the uggliest plots you can imagine + and much moRe! --- ## ChatRday ChallengRs - As self-proclaimed neRds, we love nothing more than creating cool stuff in **R** and telling anybody who will listen all about it - This process of problem-solving and having a go at creating something really helps to develop R skills, plus it's something fun to do in **R**... 😁 - So every other week in **ChatRday**, we'll set a '**ChallengR**' of something cool to create where you can earn **Hex stickers** for your efforts, and we'll vote on the best submissions! - So come along to [ChatRday](https://canvas.sussex.ac.uk/courses/23086/pages/chatrday-and-challengrs) to participate! --- ## Hex Stickers - Learning R is hard work, and working hard deserves the best kind of reward: **Hex Stickers**!! - Hexagonal ("hex") stickers have been a feature of the RStats community for years + R enthusiasts give out or get stickers at meetings or conferences, and use them to display their **pRide** - So, for every **Research Methods** module you pass (PAAS, AnD, DS, & QQM), you can collect a Hex sticker: <br> <img src="data:image/png;base64,#./img/official_hex_stickers.jpg" width="75%" style="display: block; margin: auto;" /> --- ## Hex Awards - [Hex Awards](https://canvas.sussex.ac.uk/courses/23086/pages/hex-awards) are special hex stickers that recognise particular achievements or contributions to this module - There are two weekly awards: <p><img style="width: 20%; height: 20%; float: right; padding: 10px;" src="data:image/png;base64,#img/keen_bean.png"/></p> **Keen Bean** + This award will go to students who are proactive in their learning by asking questions, actively engaging in practicals and showing enthusiasm, dedication, and curiosity <p><img style="width: 20%; height: 20%; float: right; padding: 10px;" src="data:image/png;base64,#img/savioR.png"/></p> **SavioR** + This award will go to students who go out of their way to help other students learn and understand + You can [nominate anyone](https://canvas.sussex.ac.uk/courses/23086/quizzes/32737) who has helped you debug your code or understand a new concept, supported or encouraged you, or any other acts of kindness on this module --- ## Hex Awards <p><img style="width: 20%; height: 20%; float: right; padding: 10px;" src="data:image/png;base64,#img/high_flyR.png"/></p> - There are two awards at the end of term: **High FlyR** + This award will go students who get top marks for their final overall mark on Discovering Statistics <br> <p><img style="width: 20%; height: 20%; float: right; padding: 10px;" src="data:image/png;base64,#img/climbR.png"/></p> **ClimbR** + This award will go to students who have the biggest improvement between their final overall mark on Analysing Data and their final overall mark on Discovering Statistics --- ## LeadRboard - In every **Skills Lab**, you'll have the opportunity to earn points by participating in **Kahoot quizzes** - At the end of term, the students with the highest score will receive a **pRize** for all their hard work! + You just need to make sure to use the same username each week so that your points are counted + You don't have to use your real name, but choose something memorable and unique to you & write it down! + You must [submit your username on Canvas](https://canvas.sussex.ac.uk/courses/23086/quizzes/33626) so that we can verify winnRs at the end of term, so please do this now if you haven't done so already! ??? choose something sensible, unique to you and memorable it must be the same username each week Please note that this username will be publicly visible. Anything offensive will be removed and subject to the usual University reporting procedures. be mature --- ## LeadRboard - After the first Kahoot, you'll be able to view your score on the **leadRboard** on [Canvas](https://canvas.sussex.ac.uk/courses/23086/pages/kahoot-leaderboard) <br> <iframe src="https://de-sussex.shinyapps.io/leadeRboard/"style="height: 40%; width: 100%"frameBorder="0"></iframe> --- ## Getting Help - This module focuses on developing **R** and **Statistics** skills - These are subjects that need **a lot of practice!!** - But we are here to help you: - Ask questions in practicals, after lectures, at the [R help desk](https://canvas.sussex.ac.uk/courses/23086/external_tools/7150) - Post on [Discord](https://discord.gg/Tt3uF3Tzwh) - Problem-solve with friends and classmates - Contact the [student mentors](https://canvas.sussex.ac.uk/courses/3317/pages/student-mentors) - There's no such thing as a stupid question when it comes to R/stats!! - **A stupid question is one that isn't ever asked!** - It's best to **seek help as early as possible** so we can support you - The worst thing you can do is avoid R entirely and disappear!! --- ## It's never too late to staRt! > <p style="font-size:90%">When I began at Sussex, I didn’t realise that R was a part of my course. As a lazy student, I didn’t even read my prospectus before joining, so it was a complete (unpleasant) surprise that I was studying statistics and coding. <b style="color:#1d4289">I was absolutely terrified to learn that I now had to learn coding and statistics.</b> </p> > <p style="font-size:90%">I would often put it off, or leave early in the first year, which lead to me getting 42% in my module. <b style="color:#1d4289">I just couldn't begin to understand this seemingly foreign language of R</b>. As my final year approached, <b style="color:#1d4289">I began prioritising my time around learning R</b> and stumbled into the mountainous task of completing three different methods of statistical analyses for my dissertation. </p> > <p style="font-size:90%">I had never even tried to learn how to do any of those analyses before. I was unbelievably stressed. With Dr Danielle's guidance, I achieved a 68 in my dissertation. Fast forward two months later, and <b style="color:#1d4289">I now work as a Data Analyst in the R Programming Language. I love my job</b>. </p> > <p style="font-size:90%">As above, I was never confident in my mathematical or technical abilities. I spent a long period of my academic career putting off learning how to code. <b style="color:#1d4289">If I can get this far, you all can too. It takes time, be patient and kind to yourself</b>. </p> <i><p style="text-align:right; font-size:80%">UoS Former Student</i></p> --- ## KahootR - This is your last chance to [submit your Kahoot username](https://canvas.sussex.ac.uk/courses/23086/quizzes/33626) before we begin! <iframe src="https://embed.kahoot.it/cd7bc848-910c-41e8-9c97-40f21801ded4" width=100% height=50% frameBorder="0"></iframe>