--1-Conditionals and Control Flow
#1-Relational Operators
#2-Equality
# Comparison of logicals
TRUE==FALSE
# Comparison of numerics
-6*14 != 17-101
# Comparison of character strings
'useR'=='user'
# Compare a logical with a numeric
TRUE==1#3-Greater and less than
#4-Compare vectors
#5-Compare matrices
#6-Logical Operators
#7-& and | (AND & OR)
#8-& and | (AND & OR) (2)
#9-Reverse the result: !
#10-Blend it all together
#11-Conditional Statements
#12-The if statement
#13-Add an else
#14-Customize further: else if
#15-Else if (2)
#15-Else if (3)
Last updated