Skip to content
Prev 18759 / 63461 Next

0/1 vector for indexing leads to funny behaviour (PR#8389) (maybe a documentation deficiency?)

?"[" says

See Also:

      'list', 'array', 'matrix'.

      '[.data.frame' and '[.factor' for the behaviour when applied to
      data.frame and factors.

      'Syntax' for operator precedence, and the _R Language_ reference
      manual about indexing details.

and the `indexing details' are indeed where it says they are.

This is not an introductory topic, and it makes sense to have the details 
in only one place and refer to it.  That help page is already over-loaded.
On Tue, 13 Dec 2005, Tony Plate wrote:

            
No. Zero is not a positive integer.