On Fri, 5 Jul 2019, Sven Schreiber wrote:
Am 05.07.2019 um 14:16 schrieb Artur Tarassow:
>
> Am 05.07.19 um 14:04 schrieb Sven Schreiber:
>> Probably it should work, but notice that the asterisk "*" may confuse
>> the parser because it could also mean a multiplication operator. There
>> are two workarounds that seem to work:
>
> True, the '*' may cause some confusion. But, if I remember correctly,
> one cannot pass something like <list A = Series1*Series2>.
Indeed you cannot do that, but you can do:
list A = Series1 * 2
(Although I'm not sure this is supported or recommended usage.)
"One cannot pass something like" (Artur)
list A = Series1*Series2
True. That's an attempt to put into a list an anonymous, on-the-fly
series that is the product of Series1 and Series2. Lists can include
only named series.
"But you can do" (Sven)
list A = Series1 * 2
True. The "list" specifier tells gretl to interpret the space
separated RHS terms as follows:
"Series1" : the series of that name
"*" : all the series in the dataset, except const
"2" : the series with ID number 2
So you end up with a list containing all the series, including
repeats of Series1 and whichever series has ID 2. Perfectly legal
but unlikely to be of use to man or beast.
Allin