[R] Zero Index Origin?

Barry Rowlingson B.Rowlingson at lancaster.ac.uk
Wed Mar 31 15:38:27 CEST 2004

Gabor Grothendieck wrote:
> If you are willing to do it yourself you can define a class 
> for which indexing behaves that way.

  I'd like to prefix all these solutions with "Here's how to do it, but 
don't actually do it you crazy fool". It's on a par with redefining pi, 
or redefining '+'. And then redefining '<-'.

  These techniques have their proper place, and that would be in the 
currently non-existent obfuscated R contest.

  No, the R-ish (iRish?) way is to index vectors from 1. That's what the 
R gods intended!


More information about the R-help mailing list