[R] Vector indices and minus sign

Thomas Lumley
Fri, 14 Nov 2003 15:26:00 -0000

On Fri, 14 Nov 2003, David Orme wrote:

> Hi,
>
> I got caught out by this behaviour in 1.8.0 and I wondered why this
> happens:
>

Some anomaly of this sort is unavoidable because R allows positive or
negative numeric indices. It can't distinguish between a vector of no
positive numbers and a vector of no negative numbers.

	-thomas