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]

Re: st: insheet and dropping cases


From   Phil Schumm <[email protected]>
To   Statalist Statalist <[email protected]>
Subject   Re: st: insheet and dropping cases
Date   Thu, 20 Feb 2014 14:41:00 -0600

On Feb 20, 2014, at 2:27 PM, Ben Hoen <[email protected]> wrote:
> Is there no way to sleuth out the occurrences of double quotes and change
> them to single or something other?
> 
> I just tried: . filefilter IL.txt IL2.txt, from(") to() replace
> 
> And got this response:
> 
> unmatched quote
> r(198);


You want

    filefilter IL.txt IL2.txt, from(\Q) to() replace

instead (see [D] filefilter for more info).  Of course, if you strip them out completely, then you won't be able to put them back; as an alternative, you might consider replacing them (temporarily) with some other sequence that is unlikely to occur in the file(s).


-- Phil


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index