Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Merging data files in .txt format


From   David Ashcraft <ashcraftd@rocketmail.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: Merging data files in .txt format
Date   Sat, 24 Nov 2012 22:41:48 -0800 (PST)

Hello Statalist,

I have data files saved as .txt with titles bhcfQQYY where QQ is the quarter number and YY is the two digit year. I want to import and merge these files (48 in total) as one data set.When I am using -insheet-  importing all data as one variable (one column multiple rows) I digged it and found the problem as the data is using special character "^" for separating variables for each observation. Although I have solved this problem. But mow my problem is merging of data. Do I have to change each file and then merge or is there any other straight way to do it?

Any help will be highly appreciated,

David

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index