...

/

Solution Review: Relational and Logical Operators

Solution Review: Relational and Logical Operators

In this review, we give a detailed analysis of the solution to this problem.

Solution #1: Performing each Test Separately

Press + to interact
R
testVariable <- 19
test1 <- testVariable > 4
test2 <- testVariable < 10
result <- test1 && test2
cat(result)

Explanation

Our task was to check whether the testVariable lies between 44 ...