October 2017
Beginner to intermediate
236 pages
7h 38m
English
The use of a conditional statement or conditional operator is an essential part of any programming task. You may need to test a scenario in which there are two alternative options. Further work will depend on the outcome of the test scenario. In R, using the if statement, you can compare scenarios that usually have two alternative options. In this recipe, you will use the conditional statement if.