On Wed, 20 Jun 2018, Sven Schreiber wrote:
Am 20.06.2018 um 17:28 schrieb Allin Cottrell:
> I can't find it now, but I think Sven posted a comment not so long ago
> about setting a list within an array. IIRC the point was that the following
> did not work when it seemed like it should:
Hi Allin, I don't remember it myself right now. However, in the recent thread
about "variable selection" I wrote:
"And slightly OT about gretl internals: Along the way I've noticed two
things. The first is that the deflist() function doesn't accept a vector of
series IDs as input, in the way that genr-based list construction like "list
L = {1,2}" does; maybe deflist should accept that.
OK, that is now accepted in git.
The second thing is that it would be nice to have a generalization of
the
varnum() function, to return a vector of series IDs for a list input. See my
workaround helper function listIDs in the file.
Not required. All you need do is assign the list to a matrix:
open data4-10
list L = 2 3 4 5
matrix Lvec = L # note, not "= {L}"
print Lvec
That's documented.
Allin