2. How R and RStudio Work

Content for Wednesday, January 18, 2023


This week we will dive into using R. We’ll get oriented to the RStudio IDE and start writing code right away. At this point, there will be a lot of stuff that may seem confusing, or details that are easy to miss. Don’t worry. The most important thing is to start doing things in R and to not get discouraged if things don’t work as expected. Remember, on the one hand computing errors (and error messages) are weird and perplexing and frustrating. But on the other hand, this is mostly because computers are fast but dumb, and can only do what they are told, not what you want. This also means that when something fails, there’s always a reason, even if it’s weird or hard to track down.



The slide deck for this week is available online as an HTML file. Use the buttons below to open the slides either as an interactive website or as a static PDF (for printing or storing for later). You can also click in the slides below and navigate through them with your left and right arrow keys.

View all slides in new window Download PDF of all slides


Tip: If you type ? (or shift + /) while going through the slides, you can see a list of special slide-specific commands.