ETC1010 Tutorial 1

πŸ‘‹ Scan to see the material

πŸ§‘β€πŸ« About Me

  • πŸ“Έ I love taking pictures.
  • 🎬 I enjoy watching movies.
  • πŸ›οΈ I also like shopping.
  • 🐱 I LOVE cats.
  • 🎡 And one lie: β€œI’m a professional music player.” πŸ˜‰

🎲 Two Truths and a Lie

  • Get into groups of 3 or 4.
  • Take turns sharing 2 truths and 1 lie about yourself.
  • Your group will try to guess which one is the lie.
  • You’ll have 10 minutes to chat.

πŸ§‘β€πŸ€β€πŸ§‘ Now Let’s Get to Know You

  • I’m going to open the student list with names and photos.
  • Presence is not recorded, this is just to connect with each other.

🌐 Moodle and Course Info

  • Go to: Moodle Link
  • In Unit Information, you can find:
    • Unit details
    • My consultation hours:
      • πŸ•› Thursdays 12:00 PM – 2:15 PM (hybrid)
      • πŸ“ Room 232, Building 6 (Clayton) or Zoom link

πŸ“ Assessments

  • You can earn 10% easily by mini quizzes:
    • Record a video
    • Peer grading
  • Stay updated and use the forums to ask questions

πŸ’» Installing R and RStudio

  • Go to Learning Section > Week 1
  • Click on Installing R and R Studio

πŸ”— Link to tutorial: learnr.numbat.space/chapter1

πŸ“Š Why R and RStudio?

  • This semester we’ll analyze and visualize real-world data
  • We use R, a powerful tool for data analysis
  • And RStudio, a user-friendly interface to run R

Let’s get them installed together now!

πŸ’Ύ Installing R and RStudio

πŸ” Which version to choose?

  • If you’re using Mac:
    • If your chip is M1, M2, M3, or M4 β†’ use the first link (arm64)
    • Otherwise β†’ use the second link (Intel, x86_64)
  • If you’re using Windows:
    • Click on the first one labeled β€˜base’

⏳ You have 15 minutes to try installing both tools.

☁️ If You Can’t Install: Use RStudio Cloud

  • Go to posit.cloud
  • You can login with your Google account
  • Click New Project β†’ RStudio Project
  • RStudio will open in your web browser, no installation needed!

🎨 Customising RStudio Appearance

  • I personally love the dark theme!
  • You can change the look of RStudio:
    • Go to Tools > Global Options > Appearance
    • Pick a theme you like
    • Click Apply

πŸͺŸ RStudio Panes Overview

  1. Console (Bottom Left) β†’ Run and test code
  2. Script Editor (Top Left) β†’ Write and save your code
  3. Environment/History (Top Right) β†’ See stored variables and past commands
  4. Files/Plots/Packages/Help (Bottom Right) β†’ View plots, install packages, get help

⌨️ Running Code in RStudio

  • To run a line of code from the script:
    • Mac: Command + Enter
    • Windows: Ctrl + Enter

Let’s try writing some code together now!