Skip to content
Prev 31897 / 63424 Next

Match .3 in a sequence

Duncan Murdoch wrote:
there's also the problem that seq(from=0.2, to=0.3) does *not* include
0.3 (in whatever internal form), simply because the default step is 1. 
however,

    0.3 %in% seq(from=.2,to=.3, by=0.1)
    # FALSE

so it won't help anyway.  (but in general be careful about using seq and
the like.)

vQ