Importing (undated) text from a table
Posted: Fri Jul 02, 2010 11:14 am
I'm making a table (or maybe an excel file) with mostly text data, which looks like
BANK OLD_NAME NEW_NAME
global a542xx x_kor
intl a111ggg gdp_usa
[in fixed font they line up in 3 columns]
I want to get this data into usable form, then make a loop that imports data from different databanks (e.g. first I'll get a542xx from the global bank and rename it as x_kor; etc)
All I've come up with is to make string vectors (probably named BANK, OLD_NAME, NEW_NAME) and fill them up one cell at a time
bank(1) = dattab(2,1)
bank(2) = dattab(3,1)
[of course I'd do this with a loop]
Are there any better methods I could use?
Thanks,
Dan [EV7.1]
PS: how would Eviews know when the loop reaches the end of the table?
BANK OLD_NAME NEW_NAME
global a542xx x_kor
intl a111ggg gdp_usa
[in fixed font they line up in 3 columns]
I want to get this data into usable form, then make a loop that imports data from different databanks (e.g. first I'll get a542xx from the global bank and rename it as x_kor; etc)
All I've come up with is to make string vectors (probably named BANK, OLD_NAME, NEW_NAME) and fill them up one cell at a time
bank(1) = dattab(2,1)
bank(2) = dattab(3,1)
[of course I'd do this with a loop]
Are there any better methods I could use?
Thanks,
Dan [EV7.1]
PS: how would Eviews know when the loop reaches the end of the table?