How to use logical operators and arithmetic operators in R language
This article mainly explains "how to use logical operators and arithmetic operators in R language". The content of the explanation in this article is simple and clear, and it is easy to learn and understand. let's study and learn how to use logical operators and arithmetic operators in R language.
1. Arithmetic operator
The following table shows the arithmetic operators supported by the R language. Operator operates on each element of the vector.
Add (+), add two vectors.
Sample code:
V