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 on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: data import/varname problem


From   Daniel Feenberg <feenberg@nber.org>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: data import/varname problem
Date   Tue, 10 Jul 2012 15:29:51 -0400 (EDT)


On Tue, 10 Jul 2012, Jeph Herrin wrote:

I have a dataset that comes to me in two files. Both are comma separated files: one is the header (list of variable names) and the other is the data. My problem is to combine the two, so that I have variable names on the data.


In Windows, the copy command can concatenate files:

  copy a+b c

In Unix, the cat command:

  cat a b >c

Another possibility is to edit the first file into an input statement - that is probably what I would do.

Have you confirmed that the variable names don't include spaces or dashes?

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


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