Page 1 of 1

Convert Series type to svector

Posted: Tue Feb 12, 2019 10:16 am
by lgazire
Getting the result table from a sql query returns two data types, a series and a alpha, i can easily convert the alpha to svector using the @convert, is there a way to do the same with the series type? Currently using Eviews 10.

Re: Convert Series type to svector

Posted: Tue Feb 12, 2019 12:34 pm
by EViews Gareth
You want to convert a series to a string-vector? If so, use @str to convert the series into an alpha, then @convert to convert that alpha into an svector.

If you want to convert the series into a vector, just use @convert on the series.

Re: Convert Series type to svector

Posted: Tue Feb 12, 2019 1:03 pm
by lgazire
Awesome! It worked great!
Just one more question i need to get the series date time values into a date time array, how can it be done?

Re: Convert Series type to svector

Posted: Tue Feb 12, 2019 1:58 pm
by EViews Gareth
Probably the easiest thing to do is to use @strdate(@date, "YYYY/MM/DD") to create a string representation of the dates as an alpha, then bring that alpha over.