R supports the basic arithmetic operations such as addition (+), subtraction (-), multiplication (*), and division (/). These operators can be used to perform simple math calculations in R.
For example:
# Addition
result1 <- 10 + 5
print(result1) # Output: 15
# Subtraction
result2 <- 20 - 8
print(result2) # Output: 12
# Multiplication
result3 <- 6 * 4
print(result3) # Output: 24
# Division
result4 <- 25 / 5
print(result4) # Output: 5