Please consider the following
string_1 = "??????????"
string_2 = " bob"
string_3 = "_bob_"
string_1 < 0
# [1] TRUE
string_2 < 0
# [1] TRUE
string_3 < 0
# [1] TRUE
but
string_4 = "bob"
string_4 < 0
# [1] FALSE
Why a string is considered as a negative value by R? Is there any particular character that turns the string into a negative value? If so how could I sanitize a vector of strings from being treated as negative?