Session Ready
Exercise

Quick intro to DataCamp

Welcome to our tutorial based on the popular Springboard blog post about Yelp Review Modifications. Here you will learn how the author tailored the Yelp star reviews for restaurants to provide more useful information when deciding where to eat. In case you're new to R, it's recommended that you first take our free Introduction to R Tutorial.

In the editor on the right, you should type R code to solve the exercises. When you hit the 'Submit Answer' button, every line of code is interpreted and executed by R and you get a message whether or not your code was correct. The output of your R code is shown in the console in the lower right corner. R makes use of the # sign to add comments; these lines are not run as R code, so they will not influence your result.

You can also execute R commands straight in the console. This is a good way to experiment with R code, as your submission is not checked for correctness.

Instructions
100 XP
  • In the editor on the right, there is already some sample code. Can you see which lines are actual R code and which are comments?
  • Add a line of code that calculates the sum of 8 and 15, and hit the 'Submit Answer' button.