Learning Objectives
- Become familiar with the STAT 545 website and syllabus.
- Explore basic R syntax.
Parallel Resources
Today’s class is a digest of the following resources:
- About the course: STAT 545 Video Series Introduction
- Overview of coding a data analysis: STAT 545 Episode 1-A: Coding your Analysis for Success (also available on canvas)
- Practice some R syntax and jupyter: Worksheet A1 (.ipynb; viewable)
Some additional resources that you might find useful:
Demonstration
Introductions
- Katie (instructor): https://katieburak.github.io/
- TA’s: Asfar, Omar, Erick.
Course Platforms
Platforms for hosting course-related content:
Slack (https://stat545-ab.slack.com)
- Especially
#announcements
channel - Here’s a photo of what it looks like (from Vox)
- Invite link was sent via email
- Especially
Website (https://stat545.stat.ubc.ca/) – view this as your “launchpad”.
A GitHub Organization for you to submit homework and projects to.
Canvas (for grade management and worksheet submission)
Syllabus
- Lecture topics
- Deliverables
Working with jupyter; working with R syntax.
Worksheet A1 (.ipynb; viewable) is an autograded! worksheet covering some R basics. Let’s go through some of it. You won’t be submitting this worksheet for a grade, but future worksheets will count towards your grade..
What to do when you are stuck
Working with technology can be hard. Coding can be especially hard. Getting stuck is very common in both cases.
Very useful general skills for getting unstuck are to 1. learn to help yourself, and 2. learn how to productively ask for help. The content below gives self-help advice for acquiring this skill.
Google is your friend. Google is your friend. Google is your friend.
- E.g. copy the error message, maybe strip out anything highly specific, such the name of your R objects, surround with quotes and Google it!
While you are getting started, I recommend you seek help within the STAT545 community first (try Slack!), before, e.g. posting to external forums. We are more cuddly.
This stackoverflow thread How to make a great R reproducible example? is fantastic. I find that, in the process of preparing my great reproducible example, I answer my own question 90% of the time. YMMV. So it is a useful exercise even if you aren’t ready to call in the experts yet. The process of stripping your problem down to its bare essence often reveals where the root issue lies. Highly recommended!
Search stackoverflow and include the
[r]
tag. Or the[ggplot2]
tag. Or the[plyr]
tag. You get the idea.Check out The R Inferno (see the 9th circle: “Unhelpfully seeking help”).
If someone has the wit and knowledge to answer your question, they probably have other things they would like to do. Making your message clear, concise and user-friendly gives you the best hope of at least one of those strangers diverting their attention away from their life towards your problem.
- Read How To Ask Questions The Smart Way by Eric Raymond and Rick Moen. You’ll need a slightly thick skin, but they speak truth.
… demonstrate the kind of attitude that leads to competence: alert, thoughtful, observant, willing to be an active partner in developing a solution
Read the R-help posting guide. But don’t rush to post any questions there!
More links via How to Ask Questions from a web-scraping class
(Thanks to Jenny Bryan and her team for writing the majority of this)