i

R Programming Complete Tutorial

R Arithmetic Operators

Operators

The operators are those symbols that tell the compiler for performing mathematical or logical manipulations. R programming is loaded with built-in operators, and they usually do arithmetic, Relational, Logical, or assignment operations.

Arithmetic Operators

Arithmetic operators of R, are used for basic mathematical operations. In the table below, we have organized all the arithmetic problems. The first column contains all the operators, and the second column is for their description. In the third column, we have set the entire associated example; here we are using vector, it will also help us to understand vector operations, and the final column is for the result of those examples.


Relational Operators

Relational operators are used for comparison. When we require comparing any logic, we can use them, and they return TRUE or FALSE as a result.