Basic R¶
Learning outcomes
- Comfortable with the second chapter of R for Data Science
- Comfortable with using the
swirl
package - Can assign a value to a variable
- Can tell what snake case is
- Can write a comment
- 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'?
- What is an interpreter?
Feedback questions:
- What is a variable?
- How does the assignment operator look like?
- Why use a comment?
- What is meant with 'snake case'?
- What is an interpreter?
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 - Complete it