Basic R¶
Learning outcomes
- I am comfortable with the second chapter of R for Data Science
- I can recommend the
swirl
package to the right person - I can assign a value to a variable
- I can use snake case when naming a variable
- I can write a comment
- I can correct typos in simple code
For teachers
Teaching goals are:
- Learners have read part the second chapter of R for Data Science
Prior question:
- What is R?
- What is RStudio?
- What is a variable?
- What is an assignment?
- What is an assignment operator?
- How does it look like?
- What is a comment?
- Why use a comment?
- What is meant with 'snake case'?
Feedback questions:
- What is a variable?
- Why use a comment?
- What is meant with 'snake case'?
- Why use variable names with snake case?
Why basic R is important¶
Basic R applies to all programming in R.
Exercises¶
Exercise 1¶
- Read R for data science, chapter 2 until the exercises of 2.5.
- Do these exercises
Exercise 2¶
- Install the
swirl
R package
- Load the `swirl package
- Start the `swirl package. Tip: you've gotten a hint in the previous step
- Give your name
- Pick the
R Programming
course - Pick the
1: Basic Building Blocks
lesson - Do at least 1 exercise, so you know how
swirl
behaves: the goal is to know whether to recommend/useswirl
. Do as much exercises of this lesson as you think is useful to you