Forcing a string to int
2 answers
I think it does the opposite and converts int to string.
> "0.0" < "14.9a"
[1] TRUE
> "2.03" < "14.9a"
[1] FALSE
> "10.11006" < "14.9a"
[1] TRUE
On the help page:
If two arguments are atomic vectors of different types, forcing the type of another, (decreasing) order of priority to be a symbol, complex, numerical, integer, logical and unprocessed.
and:
, : . . , en_US, C ( ASCII) . - ...
+14