Upper Value of Equation's Sample

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt

diggetybo
Posts: 152
Joined: Mon Jun 23, 2014 12:04 am

Upper Value of Equation's Sample

Postby diggetybo » Wed Mar 01, 2017 1:31 am

The current output of my existing equation when accessing its sample data member, eq_01.@smpl is this:

09-12-2016 02/24/2017

I have also stored it in a string vector:

Code: Select all

svector eq_date = eq_01.@smpl


What I would like to do is only store the upper value of the date sample, i.e. 02/24/2017. Can anything be brought to bear here?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 12584
Joined: Tue Sep 16, 2008 5:38 pm

Re: Upper Value of Equation's Sample

Postby EViews Gareth » Wed Mar 01, 2017 8:37 am

Use the @word function to return the second part of the sample.
Follow us on Twitter @IHSEViews


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 7 guests