Dear Member I have several question
1. How can I get the number of rows in the alpha series . the function @rows is written to work for alpha series as well but it doesnt .
Syntax: @rows(o)
Argument: matrix, vector, rowvector, sym, series, or group, o
Return: scalar
Returns the number of rows in the matrix object, o.
Example:
scalar sc1=@rows(m1)
It gives me back an error saying that it is only for matrix
2. The function
fetch(options) object_list
what if I have all the elements that i want to fetch saved in a table and cant put by hand one by one , can I somehow refer to each element of the table rows and fetche that element from the database?
Thanks beforehand
Armine
Alpha series, Fetch function...
Moderators: EViews Gareth, EViews Moderator
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13319
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Alpha series, Fetch function...
@rows works on a series, but not on an Alpha.
It is somewhat silly to work on a series, to be honest. All series (and alphas) have the same number of rows - and that is the number of observations in the workfile page. Thus to get their size, you can just use @obsrange.
You can cycle through the rows of the table one by one, fetching them in a for loop.
It is somewhat silly to work on a series, to be honest. All series (and alphas) have the same number of rows - and that is the number of observations in the workfile page. Thus to get their size, you can just use @obsrange.
You can cycle through the rows of the table one by one, fetching them in a for loop.
Follow us on Twitter @IHSEViews
Return to “General Information and Tips and Tricks”
Who is online
Users browsing this forum: No registered users and 8 guests