- Why
TRUE == "TRUE"isTRUEin R? - Is there any equivalent for
===in R?
Update:
These are all returning FALSE:
TRUE == "True"
TRUE == "true"
TRUE == "T"
The only TRUE value is TRUE == "TRUE".
In case of checking with identical() everything works fine.
Second Update:
By === operator I meant the process of checking the Value and the Data Type of a variable. In this case I assumed that the == operator will only compare the Values of variables, not their Data Type as well.