Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upUser-defined vectors off by one #136
Comments
|
Urgh that's horrible. I have a new idea about dealing with indexes (#115) which will make this sort of thing more understandable, but of cause break anything that ends up depending on this behaviour |
|
same as #52 |
|
Looks like #139 will fix this |
|
From version
|
I have the following code in a file
minimal_example.R:and I run
As an R user, I expect
I_0to be initialised to1 2 3, but because C uses zero indexing, I get0 1 2. Which is fine, I can add 1 to my vector, but I find the behaviour unexpected.