Key Concepts

Review core concepts you need to learn to master this subject

Basic Syntax in R

## Order of operations 25+7/4 #26.75 (25+7)/4 #8 ## AND vs OR 5 > 3 && 3 > 4 #FALSE 5 > 3 || 3 > 4 #TRUE

R uses symbols to represent:

  • math operations (+, -, *, and / and follows the order of operations)
  • logical operators (>, >=,<, <=, ==, and !=)
  • joining logical operators (&, &&, | and ||)
  • object assignment (<- or =)

The names of objects in R must follow 3 rules:

  1. No spaces
  2. No symbols other than . or _
  3. Names must begin with a letter