0Pricing
R Academy · Lesson

Basic Arithmetic and Variables

Practice simple arithmetic operations in R and understand how to store values in variables.

1

Introduction to Arithmetic in R

R can be used as a simple calculator to perform arithmetic operations.

Basic Arithmetic and Variables — illustration 1

2

Basic Arithmetic Operations

R supports common mathematical operations:

  • Addition (+)
  • Subtraction (-)
  • Multiplication (*)
  • Division (/)
  • Exponentiation (^)
  • Modulo (%%)

All lessons in this course

  1. Getting Started with RStudio
  2. Basic Arithmetic and Variables
  3. Workspaces and Projects
← Back to R Academy