On Thu, 19 May 2016, Summers, Peter wrote:
Hi Sven,
Thanks, this provides more information! I modified my example script
following your suggestions -- see below.
>
> [This is probably OT, sorry]
>
Doesn't look that way...
> Am 19.05.2016 um 19:06 schrieb Summers, Peter:
>>
>> list ylist = y1 y2
>> loop foreach i ylist --quiet
>> r = 100*diff(log(ylist[i]))
>
> I find it strange to combine the 'foreach' loop with the numerical indexing
> into the list. I would have expected either the following:
>
> loop i=1..nelem(ylist)
> ... ylist[i]
>
This version gives the "odd" results in my first message.
> or this variant:
>
> loop foreach i ylist
> ... $i
>
This variant gives the results I expected -- missing values where
they should be.
Looks like the problem is at least partly down to my poor hansl
technique!
It looks as if the two variants ought to give the same results. I'm on
limited computer-time at the moment but this is on my list of things
to look into when I get a chance.
Allin