Operators are highly specialized symbols used to perform operations on variables and values.
R divides its immense collection of operators into several logical groups.
These operators confidently perform standard mathematical calculations.
+ (Addition)- (Subtraction)* (Multiplication)/ (Division)^ (Exponentiation)These operators compare two values and strictly return a boolean TRUE or FALSE.
== (Equal to)!= (Not equal to)> (Greater than)< (Less than)>= (Greater than or equal to)Logical operators combine multiple conditional boolean statements together securely.
& (AND) - Returns TRUE strictly if both statements are true.| (OR) - Returns TRUE if at least one of the statements is true.! (NOT) - Actively reverses the boolean result (turns TRUE into FALSE).x <- 10 # Returns TRUE because both conditions are completely true! print(x > 5 & x < 15) # Returns TRUE because at least one condition is true! print(x == 10 | x == 100)
Which comparison operator is used to verify if two values are exactly equal?
Which logical operator returns TRUE only if BOTH conditional statements evaluate to TRUE?