Convert Series type to svector
Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator
Convert Series type to svector
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.
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13305
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Convert Series type to svector
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.
If you want to convert the series into a vector, just use @convert on the series.
Follow us on Twitter @IHSEViews
Re: Convert Series type to svector
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?
Just one more question i need to get the series date time values into a date time array, how can it be done?
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13305
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Convert Series type to svector
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.
Follow us on Twitter @IHSEViews
Who is online
Users browsing this forum: No registered users and 16 guests