Zero based arrays/vectors in R
问题 Is there some way to make R use zero based indexing for vectors and other sequence data structures as is followed, for example in C and python. We have some code that does some numerical processing in C, we are thinking of porting it over into R to make use of its advanced statistical functions, but the lack(as per my understanding after googling) of zero based index makes the task a bit more difficult. 回答1: TL;DR: just don't do it! I don't think the zero/one-based indexing is a major