Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: How do I outfile a set of variables with no delimeters?


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: How do I outfile a set of variables with no delimeters?
Date   Wed, 25 Sep 2002 01:14:05 +0100

Brian Sala
>
> I want to output a rectangular data set to a text file,
> just compact lines of digits. I.e., the inverse of "infix" with a
dictionary
> containing format statements.
>
> so I want the data to look like this
>
> 123456789123456789...
> 123456789123456789...
> 123456789123456789...
> .
> .
> .
>
> Can this be done without having to convert byte variables
> to string and
> using the runtogether option?
>

I am not clear what the objection is to string conversion.
However, I don't know an alternative other than -file-.

Note that

. egen everything = concat(varlist)

is one easy way to pack a bundle of byte variables into
a single string variable, subject to the limit on string
variables in your Stata, after which

. outfile everything using ... , runtogether

Nick
n.j.cox@durham.ac.uk

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



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