Skip to content

Commit 0eac99d

Browse files
authored
Update Day51.md
1 parent 8ca552c commit 0eac99d

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

Day51.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Day 51 of #dailycoding challenge ⬇️
22

3-
Today we will talk about #R_operators .
3+
Today we will talk about **R_operators**.
44

55
R has many operators to carry out different mathematical and logical operations.
66
Operators in R can mainly be classified into the following categories:
@@ -16,23 +16,23 @@ Happy Coding Learning !
1616
``` r
1717
#Arithmetic Operators
1818
x <- 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
2323
y%/%x
2424
y%%x
2525
y^x
2626
#Relational operators
2727
x <- 7
28-
y<-18
29-
x<y
30-
y>=20
28+
y <- 18
29+
x < y
30+
y >= 20
3131
x != 5
3232
#On vectors:
3333
x <- c(2,8,3)
3434
y <- c(6,4,1)
35-
x+y
35+
x + y
3636
x>y
3737
#logical Operators
3838
x <- c(TRUE,FALSE,0,7)
@@ -49,5 +49,4 @@ x|y
4949
#Associativity
5050
3 / 4 / 5
5151
3 / (4 / 5)
52-
5352
```

0 commit comments

Comments
 (0)