Booleans - R Booleans / Logical Values Flashcards

1
Q

70) You can evaluate any expression in R, and get one of two answers, TRUE or FALSE.

A

Booleans TRUE or FALSE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

71) When you compare two VALUES, the expression is evaluated and R returns the logical answer

A

Booleans TRUE or FALSE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

72) You can also compare two VARIABLES:

A

Booleans TRUE or FALSE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

73) You can also run a condition in an if statement,

A

if (b > a) {print()} else {print()}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly