From 3c3328df7b199ad029ca8350e3c87844ce0577d7 Mon Sep 17 00:00:00 2001 From: Tim Millar Date: Wed, 26 Apr 2017 13:54:10 +1200 Subject: [PATCH] added R as another example of a 1-based indexing --- _episodes/01-numpy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_episodes/01-numpy.md b/_episodes/01-numpy.md index 8ea599514..836634a4d 100644 --- a/_episodes/01-numpy.md +++ b/_episodes/01-numpy.md @@ -334,7 +334,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