Lesson 2 Flashcards
1
Q
Creating a string
A
x < - “y”
2
Q
Character Vector
A
x < - c(“x”, “y”, “z”)
3
Q
Logical Values (Boolean)
A
TRUE, FALSE
4
Q
Equality operator
A
x == y
5
Q
Less-than-or-equal-to
A
x < = y
6
Q
Greater-than-or-equal-to
A
x > = y
7
Q
Not equal operator
A
x ! = y
8
Q
Not operator
A
!x = y
9
Q
AND operator (?)
A
x & y == z
10
Q
OR operator (?)
A
x | y == z
11
Q
Any function
A
any(x == y)
12
Q
All function
A
all(x == y)
13
Q
Which function
A
which(x == y)
14
Q
Indexing
A
x[y]