Hands-on Data Science
My learning DE

Learning path144 min

Getting started with R

You read and write simple R code, calculate with vectors and the columns of a table, deal with missing values and chain steps with the pipe.

Part 1: Calculating and names

4 steps
  1. R as a calculator Lesson 8 min
  2. Giving values a name Lesson 8 min
  3. Calling functions Lesson 10 min
  4. Exercise: What does the milk cost per year? Exercise 15 min

Part 2: Vectors and data types

5 steps
  1. Vectors and data frames Slides 45 min
  2. Vectors Lesson 20 min
  3. Numbers, text and logical values Lesson 10 min
  4. Missing values Lesson 8 min
  5. Exercise: The weekly shop Exercise 20 min
About this path

This path takes you in small lessons from the first calculation to a table you query with the pipe. Each lesson covers one thing and takes about ten minutes. Every code box is a small editor in which R runs right in your browser; there is nothing to install.

The first part shows R as a calculator, with names for values and with functions. The second introduces vectors, the basic form of all data in R, with their types, with comparisons and with missing values; at its start, the slides use the game with three doors to show the way from a vector to a data frame in one go. The third brings everything together in a table and ends with the pipe, on which data transformation with dplyr builds. Each of the first two parts is followed by an exercise, the third by a quiz. If you want to continue on your own computer afterwards, Positron is the right environment.

For whom
Everyone who wants to analyse data with R, without programming experience
Level
Beginner
Code
6184
Status
published

    A four-digit code takes you straight to the item.