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: RE: how to handle this type of strings: "text (i.e it containes only one ")


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: RE: how to handle this type of strings: "text (i.e it containes only one ")
Date   Sat, 20 Feb 2010 19:19:14 +0100

<>

You need the double quotes described in [U], 18.3.5. Your reference may
differ slightly since you say you are a Stata 10 user.


*******
clear*

input str15 mystrvar
`""text"'
"other string"
end

list, noo
drop if mystrvar==`""text"'
list, noo
*******


HTH
Martin

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Adrian Gonzalez
Sent: Samstag, 20. Februar 2010 17:18
To: [email protected]
Subject: st: how to handle this type of strings: "text (i.e it containes
only one ")

Dear members

I have a string VARIABLE that contains the following value "text (the " is
part of the string value).

and I want to delete those rows , but when i write
delete if VARIABLE=""text"

I get the following error
too few quotes
r(132);

i am using Stata 10.1

Thanks for your help



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

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