Part 7: How do you learn R from zero? · Module 14

Talk to R like a calculator

What Are Your First R Commands?

Type this into the Console and press Enter. R answers right away, no small talk.

That [1] simply means "this is the first, and in this case only, answer." Now let's store a number in a variable using the arrow <- , which is R's slightly dramatic way of saying "put this into."

What You Will Be Able to Do

  • Use R as a simple calculator.
  • Store a value in a variable with the arrow.
  • View what a variable contains.

Start This Module

The full lesson opens after a free, one-minute enrolment. See the full curriculum.