What does the operator !
do in R?
a) Negates a logical value
b) Performs logical AND
c) Multiplies two numbers
d) Divides two numbers
Answer:
a) Negates a logical value
Explanation:
The !
operator in R is a logical negation operator, reversing the logical value.