Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use logical operators and arithmetic operators in R language

Shulou Source: shulou.com Published: 2022-06-02 01:13:01 09月10日 Update

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

Tags: Code vectors examples elements operations operators results logic language arithmetic two checks references numbers allocation learning support output content Boolean Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Shulou Information Docker Shulou Tech Info macOS