Arithmetic:
+ (addition)
- (subtraction)
* (multiplication)
/ (division)
^ or ** (exponentiation)
%% (modulo, remainder)
%/% (integer division)
Relational:
< (less than)
> (greater than)
<= (less than or equal to)
>= (greater than or equal to)
== (equal to)
!= or <> (not equal to)
Logical:
& (element-wise AND)
| (element-wise OR)
! (logical NOT)
&& (scalar AND)
|| (scalar OR)
Others:
%*% (matrix multiplication)
%in% (checks if an element is in a vector)
%>% or |> (pipe operator from the magrittr package)
[]: Extract content from vectors, lists, or data frames.
[[ ]] and $: Extract a single item from an object.