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: Quote Quote Unquote Unquote??


From   miyu Lee <[email protected]>
To   [email protected]
Subject   st: Quote Quote Unquote Unquote??
Date   Wed, 23 Mar 2011 15:05:16 +0100

Hi,

I have a small issue regarding quotation marks:

I want to remove all quote marks from my dataset, seems it doesnt work
with the substring command.

For example, "replace variable = subinstr( variable, """, " ",.)"

(that is triple quotation marks) doesnt work, (rightly) saying "too few quotes"

or: "replace variable = subinstr (variable, """", " ", .)" works -
unfortunately removing everything within quotation marks.

Hmmmm, does anyone have any ideas?

Thanks
Miyu
*
*   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