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
2
Q
71) When you compare two VALUES, the expression is evaluated and R returns the logical answer
A
Booleans TRUE or FALSE
3
Q
72) You can also compare two VARIABLES:
A
Booleans TRUE or FALSE
4
Q
73) You can also run a condition in an if statement,
A
if (b > a) {print()} else {print()}