series attribute by number

For making suggestions and/or requests for new features you'd like added to EViews.

Moderators: EViews Gareth, EViews Moderator

xprimexinverse
Posts: 39
Joined: Fri Sep 18, 2015 11:41 am
Location: Dublin, Ireland
Contact:

series attribute by number

Postby xprimexinverse » Sun Nov 24, 2019 11:30 am

Hi,

@attr(“arg”) string containing the value of the arg attribute, where the argument is specified as a quoted string.


I think it would be useful to be to access series attributes (labels) by passing an index value to the @attr() function instead of a quoted string.

For example, the @attr() function would be more flexible if I could also use it like this (conducive to looping):

Code: Select all

series_name.@attr(1)
series_name.@attr(2)
etc.
series_name.@attr(max_attr)


It would also be useful to be able to get the maximum number of series attributes (labels).

The reason for this kind of flexibility is because I may not know the series labels to be able to pass in a quoted string.

An alternative solution would be to able to obtain a list of the series attributes (from which I could get the max number and then design a loop). Maybe this functionality already exists?

Thanks,
Graeme

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

Re: series attribute by number

Postby EViews Gareth » Sun Nov 24, 2019 11:58 am

There isn’t really an order to them, so numbers isn’t great.

A list of attributes is possible, but it would really be on a workfile basis, and then individual objects would have blanks if they didn’t have an entry for that attribute.

We could also do it on an object basis, I suppose.
Follow us on Twitter @IHSEViews

xprimexinverse
Posts: 39
Joined: Fri Sep 18, 2015 11:41 am
Location: Dublin, Ireland
Contact:

Re: series attribute by number

Postby xprimexinverse » Tue Nov 26, 2019 5:05 am

Thanks for the reply, Gareth.

A list of attributes sounds like a good solution.

Cheers,
Graeme


Return to “Suggestions and Requests”

Who is online

Users browsing this forum: No registered users and 8 guests