Practice Examples 1

Step 1

Install swirl in Rstudio.

install.packages("swirl")
library(swirl)
install_from_swirl("R Programming Alt")  # this may take a while (10-30 min)

You can start swirl by issuing swirl(). After restarting Rstudio, you should type library(swirl) before you can run swirl().

Step 2

Work through the following lessons (each of which may take 10-20 minutes depending on your pace):

  1. Basic Building Blocks
  2. Sequences of Numbers
  3. Vectors
  4. Missing Values
  5. Subsetting Vectors
  6. Matrices and Data Frames

At the end of each lesson answer “Yes” to the question: “Would you like to inform someone about your successful completion of this lesson?”. Give your name and my email address (divenyi_janos@phd.ceu.edu), and send the email about the completion.

Additional

Read the Economists’ interesting (and short) article about coding.