Session Ready
Exercise

Variable assignment I

A basic concept in R programming is the variable. It allows you to store a value or an object in R. You can then later use this variable's name to easily access the value or the object that is stored within this variable. You use <- to assign a variable:

my_variable <- 4
Instructions
100 XP

Complete the code in the editor such that it assigns the value 42 to the variable x in the editor. Click 'Submit Answer'. Notice that when you ask R to print x, the value 42 appears.