If … Else Conditional Statements

R supports the usual logical conditions from mathematics: Operator Name Syntax Try it == Equal x == y 5== (15/3) = TRUE 5== (4*3)= FALSE != Not equal x != y  5!=-5 > Greater than x > y 10> 8 < Less than x < y 7<10 >= Greater than or equal to x >= […]

If … Else Conditional Statements Read More »