concept conditional statement in category R

appears as: conditional statements, conditional statement
Exploring Data with R

This is an excerpt from Manning's book Exploring Data with R.

Our learning of the more useful base R functions will occur within the context of learning more about R programming in general. We will learn how to write our own functions, using conditional statements as decision points in the code. We’ll also explore what it means in practice to program defensively. That’s all about anticipating user input errors when calling our function and providing error messages that help users discover and correct their mistakes. By the end of this chapter we will have taken some code, transformed it into a callable function, and improved it substantially (through several iterations).

Listing 7.10. The result of a conditional statement.
```{r eval_of_comparision_expr}
y >= 3                                              #A       
```