Page 1 of 1

@ilast is not a Genr or series expression function

Posted: Wed May 04, 2016 3:17 am
by loulouviews
Hi,

I want to fill a vector with number of the last observation of timeseries
I'm doing :

Code: Select all

vector(2) myVector myVector.fill @ilast(myTs1), @ilast(myTs2)
But I got the error :"@ILAST is not a Genr or series expression function."
Doing :

Code: Select all

vector(2) myVector !nb1 = @ilast(myTs1) !nb2 = @ilast(myTs2) myVector.fill !nb1, !nb2
Is working like a charm but I'm wondering why I get the error mentioned above since @ilast returns a scalar which is what is expected as an argument by fill.

Re: @ilast is not a Genr or series expression function

Posted: Wed May 04, 2016 3:46 am
by EViews Gareth
There are certain functions that only work in "series" world, and some that only work in "vector" world.

The vector processor doesn't understand @ilast since it only exists in series world.

Re: @ilast is not a Genr or series expression function

Posted: Wed May 04, 2016 4:21 am
by loulouviews
Ok, thanks for your quick reply.