Skip to content
Prev 152976 / 398500 Next

Between the values

Shubha Vishwanath Karanth wrote:
Hi Shubha,

What are you trying to do? The set of all real numbers between 0 and 1 is
infinitely large. Obviously you can't explicitly construct an infinitely
large vector in R. If you want to construct an implicit specification of
that set, then I think I've already given you a good answer in R: define a
predicate function and use it. E.g.

between <- function(x, low, high) x > low && x < high

I don't know much at all about symbolic mathematics packages like Maple and
Mathematica, but maybe you're thinking of something you can do in those
softwares? R is not trying to be a competitor to them; they do lots of
things R doesn't, and vice versa.

Dan
Shubha Vishwanath Karanth wrote: