Back to: Introduction to R
As you go through the course there will be numerous blue sections. These will have a Quick Check Practice. You can follow the instructions in a window that will let you type R code and will grade it for you. An example is below:
Quick Check Practice
# This will get executed each time the exercise gets initialized
b = 6
# Create a variable a, equal to 5
# Print out a
# Create a variable a, equal to 5
a <- 5
# Print out a
print(a)
test_object("a")
test_function("print")
success_msg("Great job!")
Use the assignment operator (
<-
) to create the variable a
.