Why does "some string" > 0 evaluate to TRUE in R?
Why does R evaluate "string" > 0 as TRUE? I first thought this might be due to an implicit type conversion or that R interprets this as nchar("string") > 0. This does not seem to be the case: "some string" > 0 #[1] TRUE # Verify if any other comparison is true: "some string" <… Read More Why does "some string" > 0 evaluate to TRUE in R?