Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[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" <[email protected]>
To   "[email protected]" <[email protected]>
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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index