On Aug 3, 2016, at 3:12 PM, Paul Johnson <pauljohn32 at gmail.com> wrote:
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.
xx <- seq.int(1,10)
class(xx)
xx <- seq.int(1,10, 2)
class(xx)
xx <- seq.int(1,10, 2L)
class(xx)
xx <- seq.int(1L, 10L, 2L)
class(xx)
[1] TRUE
I think all of those should have same return value, if the function is
correctly named seq.int.