News for hackers. Stuff that matters.
Re:ARrgh: a newcomer's angry guide to R (2013) by redacted on Monday December 15, 2014 @03:09AM (#8751063)
alilja's issue isn't 1-indexing, it's R's completely insane decision to return usable numerical values for an array access error. In Mathematica or Matlab accidentally using 0-indexing would lead to obvious errors, while in R it often doesn't - especially if you have sparse/many zero data already
Re:ARrgh: a newcomer's angry guide to R (2013) by hadley on Tuesday December 16, 2014 @04:28PM (#8759632)
That's not true. If you index with 0 you get a zero length vector back