On "5" == 5 in R and other data processing languages

A new note I would like to share on some corner cases in expression evaluation in a few data processing languages (including R): My opinion on “5” == 5 – Win Vector LLC

1 Like

I see what you mean. Operator is probably too deeply embedded at this point. identical is safer, though one more operator to learn to use.

"5" == 5
#> [1] TRUE
identical("5",5)
#> [1] FALSE

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.