Skip to content

Commit

Permalink
Merge pull request #374 from timothymillar/and-R
Browse files Browse the repository at this point in the history
Added R as another example of a 1-based indexing
  • Loading branch information
valentina-s authored May 16, 2017
2 parents e849358 + 3c3328d commit 767e0fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _episodes/01-numpy.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ middle value in data: 13.0

The expression `data[30, 20]` may not surprise you,
but `data[0, 0]` might.
Programming languages like Fortran and MATLAB start counting at 1,
Programming languages like Fortran, MATLAB and R start counting at 1,
because that's what human beings have done for thousands of years.
Languages in the C family (including C++, Java, Perl, and Python) count from 0
because it represents an offset from the first value in the array (the second
Expand Down

0 comments on commit 767e0fb

Please sign in to comment.