File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed
Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change 11## Day 51 of #dailycoding challenge ⬇️
22
3- Today we will talk about # R_operators .
3+ Today we will talk about ** R_operators** .
44
55R has many operators to carry out different mathematical and logical operations.
66Operators in R can mainly be classified into the following categories:
@@ -16,23 +16,23 @@ Happy Coding Learning !
1616``` r
1717 # Arithmetic Operators
1818x <- 7
19- y <- 18
20- x + y
21- x * y
22- y / x
19+ y <- 18
20+ x + y
21+ x * y
22+ y / x
2323y %/% x
2424y %% x
2525y ^ x
2626# Relational operators
2727x <- 7
28- y <- 18
29- x < y
30- y > = 20
28+ y <- 18
29+ x < y
30+ y > = 20
3131x != 5
3232# On vectors:
3333x <- c(2 ,8 ,3 )
3434y <- c(6 ,4 ,1 )
35- x + y
35+ x + y
3636x > y
3737# logical Operators
3838x <- c(TRUE ,FALSE ,0 ,7 )
4949# Associativity
50503 / 4 / 5
51513 / (4 / 5 )
52-
5352 ```
You can’t perform that action at this time.
0 commit comments