I have some complicated code, but instead of showing you that, I am going to extract the essence of the problem.
Evaluate: "dogs" < "cats"
… This should evaluate to FALSE
and it does in R 3.6.
Evaluate: "Dogs" < "cats"
… This should evaluate to TRUE
because the ASCII code for "D" is 68 and the ASCII code for "c" is 99. Since 68 < 99, "Dogs" < "cats"
should evaluate to TRUE
, but it does not in R 3.6.0. However, when I tried using the Console window on the https://datacamp.com website, the expression "Dogs" < "cats"
returned TRUE
and the expression "dogs" < "Cats"
returned FALSE
- as expected.
Hence, my question is, why does R 3.6.0 return FALSE
for ("Dogs" < "cats"
) ?