[Gretl-devel] matrix from null list

Allin Cottrell cottrell at wfu.edu
Sun Feb 10 22:06:30 EST 2008


On Sun, 10 Feb 2008, Sven Schreiber wrote:

> I propose that the following should work in order to make generic code
> possible; the matrix should be simply empty ({}).
> 
> list myl = null
> matrix checkmat = { myl }

OK, done in CVS.  Also done:

list L1 = ...
list L2 = ...
list L3 = L1 || L2 # union
list L3 = L1 && L2 # intersection

matrix m = {1,2,3,4}
list L = m  # OK provided there are at least 4 variables
            # in the dataset

Allin.


More information about the Gretl-devel mailing list