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]
Re: st: Getting rid of binary codes so I can read in files - reposted
From
"Dimitriy V. Masterov" <[email protected]>
To
[email protected]
Subject
Re: st: Getting rid of binary codes so I can read in files - reposted
Date
Thu, 19 Jan 2012 15:53:48 -0500
Orian,
I sent a response to Statalist on Jan 13, but for some reason it does
not show up in the archives, so I am sending it again in case it might
prove helpful.
I'm not sure if you're specifying the binary zero character correctly. Try
"filefilter file1 file2, from(\0) to() replace".
I am also not sure what you mean by "hangs". 2 million characters may
take a bit of time to replace.
It may also be helpful to see what the first few rows of your data
look like (before and after the filefilter). A good command for that
is chunky with the peek option from ssc:
ssc install chunky
chunky using file1or2.txt, peek(5)
HTH,
DVM
*
* 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/