Search
 
SCRIPT & CODE EXAMPLE
 

R

operators R

Operator	Description
#Arithmetic 
+	addition
-	subtraction
*	multiplication
/	division
^ or **	exponentiation
x %% y	modulus (x mod y) 5%%2 is 1
x %/% y	integer division 5%/%2 is 2
#Logical
<	less than
<=	less than or equal to
>	greater than
>=	greater than or equal to
==	exactly equal to
!=	not equal to
!x	Not x
x | y	x OR y
x & y	x AND y
isTRUE(x)	test if X is TRUE
Comment

or R operator

# Or
x | y

# Other operators:
<	# less than
<=	# less than or equal to
>	# greater than
>=	# greater than or equal to
==	# exactly equal to
!=	# not equal to
!x	# Not x
x | y	# x OR y
x & y	# x AND y
isTRUE(x) # 	test if X is TRUE
Comment

PREVIOUS NEXT
Code Example
R :: absolute value in r 
R :: R excel 
R :: sparklyr alternative for str_detect 
R :: not displaying prints and on.exit in r 
R :: r code mutate 
R :: adding new key in R dictionary 
R :: R change column to row names 
R :: r ggplot variable name 
R :: %in% in r 
R :: extract rse from lm in r 
R :: add column value based on row index r 
R :: sumif in r 
R :: barplot_density 
R :: ggplot box plot without outliers poins 
Rust :: rust string to char array 
Rust :: ignore #[warn(dead_code)] 
Rust :: rust check valid email address using regex 
Rust :: rust string to f64 
Rust :: rust String to &str 
Rust :: armanriazi•rust•pattern•design•interior•mutability 
Rust :: string and str to string rust 
Rust :: rust•armanriazi•borrowchecker•borrow 
Rust :: armanriazi•rust•rc•vs•arc 
Rust :: rust match wildcard 
Rust :: armanriazi•rust•nestedtypes 
Rust :: rust•armanriazi•concept•nan 
Lua :: Get number of values in a table lua 
Lua :: rgb to hex lua 
Lua :: luau how to find something in table 
Lua :: lua sort 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =