3*2^2
6 Mathematical operations and comparisons
6.1 Quiz: Mathematical operations I
How to get the reminder of 4.5 divided by 2.5?
✗4.5^2.5
✗4.5 / 2.5
✓4.5 %% 2.5
✗4.5 %/% 2.5
✗4.5 \ 2.5
6.2 Quiz: Mathematical operations II
When you execute the following operation in R
the result will be:
✗an error
✓12
✗36
✗NA
6.3 Quiz: Comparisons I
To compare if three is greater or equal than four you should write:
✗3 > 4
✗3 >> 4
✗3 => 4
✓3 >= 4
6.4 Quiz: Comparisons II
The result of executing
<- 1:5
a < 2) | (3 > 2) (a
will be:
✓TRUE TRUE TRUE TRUE TRUE
✗an error
✗TRUE
✗FALSE
6.5 Quiz: Comparisons III
The result of executing
"z" < "a") > 2 (
will be:
✗TRUE
✓FALSE
✗NA
✗an error