[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: read text file with multiple spaces
I can think of no other way but what you stated already using the
infile command. However, if your data are all numeric then
infile using myfile
should also work.
On 8/18/05, Yu Zhang <email@example.com> wrote:
> It's a shame to ask, but does anyone know how to read
> data (text file) with multiple spaces between
> variables? The number of spaces may vary, so I cannot
> . insheet using file, delim(" ")
> The only way I figured out is to count the number of
> variables first (e.g., using Perl) and then use:
> . infile var1-var# using file
> Is there a more direct way? Thanks!
> btw, I am using Stata 8.2.
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> * For searches and help try:
> * http://www.stata.com/support/faqs/res/findit.html
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
* For searches and help try: