Importing/joining data without headers
Posted: Fri Mar 02, 2018 4:10 pm
I have two data sets I'm working with. Each has 70 files (quarterly data from 2000-present), and each file has several hundred thousand to a million observations. Each data set is vertical bar delimited and does not have headers. The headers are given in a PDF, so I'll have to manually enter those in for each series name (unless there's an easy copy/paste method you know of).
The website I'm getting my information from is the Fannie Mae Acquisition and Performance data, in case you've run across this before. They give me SAS and R code to upload and manipulate the data, but if it's possible to upload this data directly to E-views without learning two languages I'm not familiar with (I primarily work in SQL and Excel), then I'd like to cut out the middleman.
The unique identifier in both of these sets is the Loan Identifier (1st column in both data sets). I found out how to enter the 25 headers for the Acquisition data (set 1) and the 31 headers for the Performance data (set 2):
1) Is there any way I could somehow concatenate the data so that all 70 files for sets 1 and 2 have the same headers without manually entering them? That is, is there any way to upload one file and add new data to each field, creating more rows but having the same number of columns?
2) Is there any way I could combine Set 1 and Set 2 by doing a join by the Loan Identifier? Or if there's some equivalent to a VLOOKUP in Eviews, I could use something like that as well.
The website I'm getting my information from is the Fannie Mae Acquisition and Performance data, in case you've run across this before. They give me SAS and R code to upload and manipulate the data, but if it's possible to upload this data directly to E-views without learning two languages I'm not familiar with (I primarily work in SQL and Excel), then I'd like to cut out the middleman.
The unique identifier in both of these sets is the Loan Identifier (1st column in both data sets). I found out how to enter the 25 headers for the Acquisition data (set 1) and the 31 headers for the Performance data (set 2):
1) Is there any way I could somehow concatenate the data so that all 70 files for sets 1 and 2 have the same headers without manually entering them? That is, is there any way to upload one file and add new data to each field, creating more rows but having the same number of columns?
2) Is there any way I could combine Set 1 and Set 2 by doing a join by the Loan Identifier? Or if there's some equivalent to a VLOOKUP in Eviews, I could use something like that as well.