[Gretl-devel] array indexing

Allin Cottrell cottrell at wfu.edu
Tue Aug 22 09:48:02 EDT 2006


On Tue, 22 Aug 2006, Vaidotas Zemlys wrote:

> R uses 1-base indexing. If x is vector, x[1] is the first element, if m
> is array, or matrix, or data frame, m[1,] is the first row, m[,1] is the
> first column.

Thanks.  Well then, we're not out of line with all other 
programs.  (I suppose ox is really a programming language rather 
than an "econometrics package" as such, and in programming 
languages 0-base indexing is certainly the norm.)

Allin.



More information about the Gretl-devel mailing list