I would like to get a SVECTOR or a STRING of all dates in sample
For now I am doing this :
scalar tee = @rows(time)
freeze(time) usdcad
svector(@rows(time)) sampledate
for !i=10 to @rows(time)
sampledate(!i-9) = time(!i,1)
next
String sampledates = @wjoin(sampledate)
It is an "hack" to get the result done... but the code isn't clean enough for me.
Do you have a simpler way to do this ?
Thank you,
LC
I would like to get a SVECTOR or a STRING of all dates in sample
Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13318
- Joined: Tue Sep 16, 2008 5:38 pm
Re: I would like to get a SVECTOR or a STRING of all dates in sample
Code: Select all
alpha mydate = @datestr(@date, "YYYY/MM/DD")
svector mydatesv = @convert(mydate)
Not sure what your code is doing, so I can't confirm this does the same thing, but it does what you said you wanted to do (create an svector with all dates in current sample).
Follow us on Twitter @IHSEViews
Re: I would like to get a SVECTOR or a STRING of all dates in sample
Thank you for that
Last question : Is there a way to convert a "Table" column into an alpha series or a SVECTOR or a string list ?
Thank you
LC
Last question : Is there a way to convert a "Table" column into an alpha series or a SVECTOR or a string list ?
Thank you
LC
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13318
- Joined: Tue Sep 16, 2008 5:38 pm
Re: I would like to get a SVECTOR or a STRING of all dates in sample
Not easily.
Follow us on Twitter @IHSEViews
Who is online
Users browsing this forum: No registered users and 55 guests