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: reading in data where delimiter is replaced with return character


From   "Airey, David C" <david.airey@vanderbilt.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: reading in data where delimiter is replaced with return character
Date   Sat, 18 Aug 2012 14:58:17 -0500

.

When copying tables from the web and pasting, files can lose delimiters (if they had any).

So a file that looks like this online with var header included:

A	B	C
one	1	2
three	3	4

becomes this when pasted:

A
B
C
one
1
2
three
3
4

What Stata command handles this format?

The infile command has a byvariable(#) option, but this is for data like:

A one three
B 1 3
C 2 4

-Dave

*
*   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