I would like to get a SVECTOR or a STRING of all dates in sample
Posted: Wed Dec 05, 2018 2:13 pm
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
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