1. Unmatched simplicity of dplyr for data manipulation.
2. Great graphs with ggplot2.
Oh, and 1-based indexing. Try telling economics students why 3..5 means elements 4 and 5.
1. Unmatched simplicity of dplyr for data manipulation.
2. Great graphs with ggplot2.
Oh, and 1-based indexing. Try telling economics students why 3..5 means elements 4 and 5.
Doesn't 3..5 mean elements 3 and 4 : the 3rd and the 4th? 0-based indexing might feel less intuitive actually (element 3 is the 4th, and element 4 is the 5th). I don't know much R, I'm assuming that in the n..m notation, n is included and m is excluded (edit: also included, see replies).
I don't now about economy, but I think mathematicians use 0-indexed and 1-indexed sequences interchangeably and they usually (have to) specify which is the first term (u0 or u1).
var
arr: array [1 .. 5] of integer;
begin
for i := 1 to 5 do
arr[i] := i
end;
Normally you would write "for i := low(arr) to high(arr)". I just wrote the numbers "1 to 5" to be explicit here.Yes, you’re agreeing! The point of the parent was that 0-indexing is less easy to grasp