Skip to content
Prev 52181 / 63424 Next

seq.int does not return a sequence of integers sometimes

I have a script that goes wrong because I assumed that seq.int would
return integers.

Below please see it does not unless user is super cautious about
inserting "L" with inputs. I think seq.int should do coercion for me
before returning the sequence.
[1] "integer"
[1] TRUE
[1] "numeric"
[1] FALSE
[1] "numeric"
[1] FALSE
[1] "integer"
[1] TRUE


I think all of those should have same return value, if the function is
correctly named seq.int.